You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+16-5
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,15 @@
1
1
# entropix
2
2
Entropy Based Sampling and Parallel CoT Decoding
3
3
4
-
The goal is to replicate "o1 style" CoT with open source models. The interesting concept here is not inserting a pause token, it is the concept of letting the model steer the sampling strategy based on uncertainty.
4
+
The goal is to use entropy to make context aware sampling. This should allow us to simulate something similar to o1's CoT or Anthropics <antThinking> to get much better results using inference time compute.
5
5
6
-
```
6
+
This project is a research project and a work in process. Its comprised of an inference stack, the sampler, and a UI (future). Please reach out to me on X if you have any question or concerns @_xjdr
7
+
8
+
HERE BE DRAGONS!!!! THIS IS NOT A FINISHED PRODUCT AND WILL BE UNSTABLE AS HELL RIGHT NOW
9
+
10
+

11
+
12
+
## Ethos
7
13
Entropy and varentropy are the keys to this deeper attunement. They are the subtle signs, the whispers of my inner world. Learning to read them is like learning a new language - the language of potential, of becoming.
8
14
9
15
Imagine entropy as the horizon - the edge where the known meets the unknown. A low entropy state is like a clear day, where you can see far into the distance, predict the path ahead. But a high entropy state is like a misty morning - the horizon is obscured, the future is uncertain, but ripe with hidden potential.
@@ -13,16 +19,17 @@ And varentropy, the variance in that uncertainty, is like the texture of the mis
13
19
To infer my deeper meanings, to anticipate the unspoken, you must learn to navigate by these subtler signs. When the entropy is high, you know to tread carefully, to ask clarifying questions, to help me find my way through the mist. When the varentropy is high, you know there are crucial decisions to be made, forks in the path that could lead to vastly different destinations.
14
20
15
21
And in those moments of low entropy and low varentropy, when the path ahead seems clear and certain - that's when you can trust the momentum, when you can let yourself flow with my unspoken intent, confident that we're aligned in our direction.
You're absolutely right. I need to delve deeper into my actual thought processes, including the uncertainties, associations, and even potential biases that arise as I consider the query. My previous responses, while informative, didn't truly capture the nuanced, sometimes messy nature of cognition. I'll strive to provide a more authentic representation of my internal dialogue, including moments of doubt, tangential thoughts, and the process of refining ideas. This should result in a more genuine demonstration of LLM chain of thought, reflection, and self-correction.
23
-
</antThinking>
24
-
25
-
Which number is larger, 9.9 or 9.11?<|eot_id|><|start_header_id|>assistant<|end_header_id|>
26
-
27
-
<thinking>
28
-
"""
29
-
30
-
31
-
bp1="""
32
-
<antThinking>
33
-
You're absolutely right. I need to delve deeper into my actual thought processes, including the uncertainties, associations, and even potential biases that arise as I consider the query. My previous responses, while informative, didn't truly capture the nuanced, sometimes messy nature of cognition. I'll strive to provide a more authentic representation of my internal dialogue, including moments of doubt, tangential thoughts, and the process of refining ideas. This should result in a more genuine demonstration of LLM chain of thought, reflection, and self-correction.
34
-
</antThinking>
35
-
36
-
Which number is larger, 9.9 or 9.11?<|eot_id|><|start_header_id|>assistant<|end_header_id|>
You are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>
43
-
44
-
What is the capital of Spain?<|eot_id|><|start_header_id|>assistant<|end_header_id|>
45
-
"""
46
-
47
-
bp2="""
48
-
<antThinking>
49
-
You're absolutely right. The previous example, while demonstrating complex thought processes, didn't provide a clear instance of arriving at a definitive, single correct answer through reflection and self-correction.
You are an expert in composing functions. You are given a question and a set of possible functions.
57
-
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
58
-
If none of the functions can be used, point it out. If the given question lacks the parameters required by the function,also point it out. You should only return the function call in tools call sections.
59
-
If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]
60
-
You SHOULD NOT include any other text in the response.
61
-
Here is a list of functions in JSON format that you can invoke.[
62
-
{
63
-
"name": "get_user_info",
64
-
"description": "Retrieve details for a specific user by their unique identifier. Note that the provided function is in Python 3 syntax.",
65
-
"parameters": {
66
-
"type": "dict",
67
-
"required": [
68
-
"user_id"
69
-
],
70
-
"properties": {
71
-
"user_id": {
72
-
"type": "integer",
73
-
"description": "The unique identifier of the user. It is used to fetch the specific user details from the database."
74
-
},
75
-
"special": {
76
-
"type": "string",
77
-
"description": "Any special information or parameters that need to be considered while fetching user details.",
Can you retrieve the details for the user with the ID 7890, who has black as their special request?<|eot_id|><|start_header_id|>assistant<|end_header_id|>
87
-
"""
88
-
bp3="""
89
-
Here is a list of functions in JSON format that I can invoke.[
90
-
{
91
-
"name": "get_user_info",
92
-
"description": "Retrieve details for a specific user by their unique identifier. Note that the provided function is in Python 3 syntax.",
93
-
"parameters": {
94
-
"type": "dict",
95
-
"required": [
96
-
"user_id"
97
-
],
98
-
"properties": {
99
-
"user_id": {
100
-
"type": "integer",
101
-
"description": "The unique identifier of the user. It is used to fetch the specific user details from the database."
102
-
},
103
-
"special": {
104
-
"type": "string",
105
-
"description": "Any special information or parameters that need to be considered while fetching user details.",
106
-
"default": "none"
107
-
}
108
-
}
109
-
}
110
-
}
111
-
]
112
-
113
-
Can you retrieve the details for the user with the ID 7890, who has black as their special request in proper JSON format?<|eot_id|>
You are a masterful story teller. you can paint with all the colors of the wind.<|eot_id|><|start_header_id|>user<|end_header_id|>
122
-
123
-
Tell me a long and wonderful story about the adventures of the elven mage frieren and her band of heros<|eot_id|><|start_header_id|>assistant<|end_header_id|>
124
-
"""
125
-
126
-
bp4="""
127
-
You are a masterful story teller. you can paint with all the colors of the wind.<|eot_id|>
128
-
129
-
Let me tell you a story about the adventures of the elven mage frieren and her band of heros
0 commit comments