Comments (1)
Hello,
That is correct. -- length is to control the generation length.
--grad-length is the number of time-steps where the key-value pairs are updated to steer generation. Step-size is set 0, but we the updated latents for the previous time-steps stay the same (they are not reset), so the generation is likely to retain some of the conditioning. We found that this can help prevent some degeneration of the language. See Table S19 in the Appendix -- it shows how grad-length can be used to help preserve fluency when generating longer passages.
from pplm.
Related Issues (20)
- Question about future tokens in perturbation HOT 4
- paper_code usage of scripts HOT 2
- Runtume error on a finetuned model HOT 3
- Should we or Can we train the classifier on top of the fine-tuned GPT-2?
- Question about how to handle `inputs_embeds` HOT 2
- unequal dimensions between the new_accumulated_hidden and the matrix in mlp in classifier HOT 2
- Is it possible to apply PPLM to encoder-decoder models (such as BERT2GPT2) HOT 3
- Question about window mask
- Inference Time HOT 1
- Formatting training text files for discriminator training script HOT 5
- versions of all packages in requirements.txt HOT 2
- The difference of BAG_OF_WORDS_ARCHIVE_MAP in this repository and HuggingFace transformers examples/research_projects
- How to use this with any transformer based NMT model ?
- pplm with gpt-neo HOT 8
- training a discriminator
- Are the bag of words case-sensitive? HOT 1
- how to use in chinese
- Questions about discriminator attribute models
- Invalid google drive link of PPLM checkpoint
- Adding eos token
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pplm.