Comments (7)
This is a solid and exceptionally valid piece of work. While most of us more proficient writers understand COT for LLM prompting... Its so hard to train this to a wider demographic outside of the bubble... because of that so many experience LameLLMFatique where, the LLM just produces trash that they could have written better.
Go stuff...
--TheAIMogul (micahberkley.com)
from eugeneyan-comments.
I think that prompt would work decently, but doesn't guarantee the output will always start with "blah blah". Maybe fail about 0.1 - 1% of the time at large scale. With prefilling though, the following would work 100% of the time.
messages=[
{
"role": "user",
"content": input,
},
{
"role": "assistant",
"content": "blah blah" # Prefilled response
}
]
from eugeneyan-comments.
This is an incredible piece of work, thank you for publishing it!
Have you explored using an LLM step to rate a previous step’s output with recommendations, and then the subsequent step follows through on those recommendations?
From a brief attempt at this I’ve seen some potential value there, would love to know if this is a technique you’ve heard of or used yourself.
from eugeneyan-comments.
I would love to hear your thoughts on metaprompt available in anthropic docs. It does construct a chain of thought instruction for the task given but I wondered whether there is any improvements cause of the lack of benchmarks for this.
https://docs.anthropic.com/en/docs/helper-metaprompt-experimental
from eugeneyan-comments.
Have you explored using an LLM step to rate a previous step’s output with recommendations, and then the subsequent step follows through on those recommendations? — @joetann
Agreed on it being useful. That's the second step here where an LLM step helps with validation, filtering, and fixing.
It does construct a chain of thought instruction for the task given but I wondered whether there is any improvements cause of the lack of benchmarks for this. — @kailashsp
I think metaprompting a CoT is useful. That said, for most tasks, after I've looked at dozens (sometimes hundreds) of inputs and outputs, I usually have a good sense of what the "shape" of the prompt needs to be, and prefer to roll my own.
from eugeneyan-comments.
Can the "prefill response" technique be replaced by a prompt such as "please begin with blah blah"?
from eugeneyan-comments.
Thanks! Great piece of work.
I have a question about the temperature. It is possible to set temperature higher than 1. You can even set it to 10 in theory, but that will make the output unusable, right? OpenAI decided to cap it at 2.0. What is the reason for saying temperature is a value between 0.0 and 1.0?
Here is my understanding:
When an LLM generates text, it outputs a set of logits for each possible next token. These logits are raw scores that can be converted into probabilities.
Temperature Scaling: The temperature T modifies the logits before they are passed through the softmax function. scaled_logit = logit / temperature
High Temperature (T > 1): When the temperature is high, the logits are divided by a large number, resulting in smaller differences between them. This makes the probability distribution more uniform, meaning the model will sample from a wider range of tokens, leading to more random and diverse outputs.
Low Temperature (0 < T < 1): When the temperature is low, the logits are divided by a small number, amplifying the differences between them. The model will favor the tokens with higher original logits, making the output more deterministic and conservative.
Temperature of 1 (T = 1): When the temperature is set to 1, the logits remain unchanged. The output probabilities directly reflect the logits provided by the model without any scaling, offering a balance between randomness and determinism.
from eugeneyan-comments.
Related Issues (20)
- https://eugeneyan.com/writing/autoencoders-vs-diffusers/ HOT 1
- https://eugeneyan.com/writing/mechanisms-for-projects/ HOT 1
- https://eugeneyan.com/writing/what-i-did-not-learn-about-writing-in-school/ HOT 3
- https://eugeneyan.com/writing/bandits/ HOT 2
- https://eugeneyan.com/writing/labeling-guidelines/ HOT 1
- https://eugeneyan.com/writing/llm-experiments/ HOT 5
- https://eugeneyan.com/writing/open-llms/ HOT 1
- https://eugeneyan.com/writing/obsidian-copilot/ HOT 2
- https://eugeneyan.com/writing/more-patterns/ HOT 1
- https://eugeneyan.com/writing/llm-patterns/ HOT 17
- https://eugeneyan.com/writing/attention/ HOT 2
- https://eugeneyan.com/writing/finetuning/ HOT 3
- https://eugeneyan.com/writing/push/ HOT 1
- https://eugeneyan.com/writing/why-read-papers/ HOT 3
- https://eugeneyan.com/writing/georgia-tech-omscs-faq/ HOT 2
- https://eugeneyan.com/writing/unit-testing-ml/ HOT 8
- https://eugeneyan.com/writing/roam-to-obsidian/ HOT 2
- https://eugeneyan.com/writing/ai-coach/ HOT 5
- https://eugeneyan.com/writing/evals/ HOT 4
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 eugeneyan-comments.