Triangle104 commited on
Commit
a721805
·
verified ·
1 Parent(s): 1226e3f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +178 -0
README.md CHANGED
@@ -16,6 +16,184 @@ tags:
16
  This model was converted to GGUF format from [`prithivMLmods/Deepthink-Llama-3-8B-Preview`](https://huggingface.co/prithivMLmods/Deepthink-Llama-3-8B-Preview) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
17
  Refer to the [original model card](https://huggingface.co/prithivMLmods/Deepthink-Llama-3-8B-Preview) for more details on the model.
18
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  ## Use with llama.cpp
20
  Install llama.cpp through brew (works on Mac and Linux)
21
 
 
16
  This model was converted to GGUF format from [`prithivMLmods/Deepthink-Llama-3-8B-Preview`](https://huggingface.co/prithivMLmods/Deepthink-Llama-3-8B-Preview) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
17
  Refer to the [original model card](https://huggingface.co/prithivMLmods/Deepthink-Llama-3-8B-Preview) for more details on the model.
18
 
19
+ The Deepthink-Llama-3-8B-Preview is a fine-tuned version of the Llama-3.1-8B base model, further enhanced with the Rethinking R1 Dataset Logits
20
+ for superior text generation. This model is designed for advanced
21
+ reasoning, structured problem-solving, and contextually rich outputs,
22
+ making it an excellent choice for applications in education, programming, research, and creative writing.
23
+
24
+
25
+ With its optimized architecture, Deepthink-Llama-3-8B-Preview excels at:
26
+
27
+
28
+ Logical reasoning and step-by-step problem solving
29
+ Mathematical and coding tasks, leveraging specialized expert models
30
+ Generating long-form content (up to 8K tokens) with improved coherence
31
+ Understanding structured data, including tables and JSON outputs
32
+ Instruction following and adapting to diverse system prompts, making it ideal for chatbots and AI assistants
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+ Key Features
41
+
42
+
43
+
44
+
45
+ Supports long-context processing of up to 128K tokens
46
+ Multilingual capabilities for 29+ languages, including English, Chinese, Spanish, French, German, Arabic, and more
47
+ Fine-tuned using Supervised Fine-Tuning (SFT) and Reinforcement Learning with Human Feedback (RLHF)
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+ Model Architecture
56
+
57
+
58
+
59
+
60
+ Deepthink-Llama-3-8B-Preview is built on the optimized transformer architecture of Llama-3.1-8B, integrating enhanced dataset logits from Rethinking R1 for better contextual understanding and output quality.
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+ Use with transformers
69
+
70
+
71
+
72
+
73
+ To run conversational inference using transformers >= 4.43.0, use the pipeline abstraction or leverage the generate() function with the Auto classes.
74
+
75
+
76
+ Ensure your environment is updated with:
77
+
78
+
79
+ pip install --upgrade transformers
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+ Example Usage
89
+
90
+
91
+
92
+
93
+ import torch
94
+ from transformers import pipeline
95
+
96
+ model_id = "prithivMLmods/Deepthink-Llama-3-8B-Preview"
97
+ pipe = pipeline(
98
+ "text-generation",
99
+ model=model_id,
100
+ torch_dtype=torch.bfloat16,
101
+ device_map="auto",
102
+ )
103
+
104
+ messages = [
105
+ {"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
106
+ {"role": "user", "content": "Who are you?"},
107
+ ]
108
+
109
+ outputs = pipe(
110
+ messages,
111
+ max_new_tokens=256,
112
+ )
113
+ print(outputs[0]["generated_text"][-1])
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+ Intended Use
123
+
124
+
125
+
126
+
127
+ Deepthink-Llama-3-8B-Preview is designed for a wide
128
+ range of applications requiring deep reasoning, structured outputs, and
129
+ logical text generation. It is particularly suited for:
130
+
131
+
132
+ Education & Research: Generating detailed explanations, step-by-step solutions, and structured academic content.
133
+ Programming & Code Generation: Assisting in code writing, debugging, and algorithm explanations with improved logic structuring.
134
+ AI Chatbots & Assistants: Providing context-aware, instruction-following responses for conversational AI applications.
135
+ Creative Writing: Generating high-quality stories, articles, and structured narratives with coherence.
136
+ Data Analysis & Structured Output Generation: Interpreting and generating JSON, tables, and formatted outputs for structured data processing.
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+ Limitations
145
+
146
+
147
+
148
+
149
+ While Deepthink-Llama-3-8B-Preview is optimized for deep reasoning and structured outputs, it has some limitations:
150
+
151
+
152
+ Not a Real-time Knowledge Source
153
+
154
+
155
+ The model is trained on a fixed dataset and does not have real-time
156
+ internet access. It may not provide up-to-date information on rapidly
157
+ evolving topics.
158
+
159
+
160
+ Potential Biases
161
+
162
+
163
+ As with all AI models, responses may reflect biases present in the
164
+ training data. Users should critically evaluate outputs, especially in
165
+ sensitive domains.
166
+
167
+
168
+ Mathematical & Logical Reasoning Constraints
169
+
170
+
171
+ While strong in step-by-step reasoning, it may occasionally produce
172
+ incorrect mathematical calculations or logical inconsistencies. External
173
+ verification is recommended for critical applications.
174
+
175
+
176
+ Handling of Extremely Long Contexts
177
+
178
+
179
+ While it supports up to 128K tokens, efficiency and coherence may degrade when processing very long documents or conversations.
180
+
181
+
182
+ Limited Handling of Ambiguity
183
+
184
+
185
+ The model may struggle with highly ambiguous or context-dependent
186
+ queries, sometimes generating plausible but incorrect responses.
187
+
188
+
189
+ Ethical & Compliance Considerations
190
+
191
+
192
+ Not intended for generating misinformation, automating legal or
193
+ medical decisions, or other high-risk applications without human
194
+ oversight.
195
+
196
+ -
197
  ## Use with llama.cpp
198
  Install llama.cpp through brew (works on Mac and Linux)
199