Deepthought-8B is a small and capable reasoning model built on LLaMA-3.1 8B, designed to make AI reasoning more transparent and controllable. Despite its relatively small size, it achieves sophisticated reasoning capabilities that rival much larger models.
Model Description
Deepthought-8B is designed with a unique approach to problem-solving, breaking down its thinking into clear, distinct, documented steps. The model outputs its reasoning process in a structured JSON format, making it easier to understand and validate its decision-making process.
Key Features
Transparent Reasoning: Step-by-step documentation of the thought process
Programmable Approach: Customizable reasoning patterns without model retraining
Test-time Compute Scaling: Flexible reasoning depth based on task complexity
Efficient Scale: Runs on 16GB+ VRAM
Structured Output: JSON-formatted reasoning chains for easy integration
1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
34# Initialize the model5model_name ="ruliad/deepthought-8b-llama-v0.01-alpha"6tokenizer = AutoTokenizer.from_pretrained(7 model_name,8 add_bos_token=False,9 trust_remote_code=True,10 padding="left",11 torch_dtype=torch.bfloat16,12)1314model = AutoModelForCausalLM.from_pretrained(15 model_name,16 torch_dtype=torch.bfloat16,17 device_map="auto",18 attn_implementation="flash_attention_2",# Use "eager" (or omit) if flash_attn is not installed19 use_cache=True,20 trust_remote_code=True,21)
Run the provided example script:
python deepthought_inference.py
Example Output
The model provides structured reasoning in JSON format:
json
1{2"step":1,3"type":"problem_understanding",4"thought":"Understanding the user's objective for the task."5}
Each reasoning chain includes multiple steps:
Problem understanding
Data gathering
Analysis
Calculation (when applicable)
Verification
Conclusion drawing
Implementation
Performance
Deepthought-8B demonstrates strong performance across various benchmarks:
Step-by-step problem-solving
Coding and mathematical tasks
Instruction following with transparent reasoning
Scalable performance with test-time compute
Limitations
Current known limitations include:
Complex mathematical reasoning
Long-context processing
Edge case handling
License
The model is available under a commercial license for enterprise use.
Citation
If you use this model in your research, please cite:
bibtex
1@misc{Deepthought2024,
2 author = {Ruliad},
3 title = {Deepthought-8B: A Small and Capable Reasoning Model},
4 year = {2024},
5 publisher = {Ruliad}
6}