Text Generation
Transformers
Safetensors
English
llama
mergekit
Merge
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use agentlans/Llama3.1-SuperDeepFuse with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use agentlans/Llama3.1-SuperDeepFuse with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="agentlans/Llama3.1-SuperDeepFuse") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("agentlans/Llama3.1-SuperDeepFuse") model = AutoModelForCausalLM.from_pretrained("agentlans/Llama3.1-SuperDeepFuse") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use agentlans/Llama3.1-SuperDeepFuse with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "agentlans/Llama3.1-SuperDeepFuse" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "agentlans/Llama3.1-SuperDeepFuse", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/agentlans/Llama3.1-SuperDeepFuse
- SGLang
How to use agentlans/Llama3.1-SuperDeepFuse with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "agentlans/Llama3.1-SuperDeepFuse" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "agentlans/Llama3.1-SuperDeepFuse", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "agentlans/Llama3.1-SuperDeepFuse" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "agentlans/Llama3.1-SuperDeepFuse", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use agentlans/Llama3.1-SuperDeepFuse with Docker Model Runner:
docker model run hf.co/agentlans/Llama3.1-SuperDeepFuse
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("agentlans/Llama3.1-SuperDeepFuse")
model = AutoModelForCausalLM.from_pretrained("agentlans/Llama3.1-SuperDeepFuse")
messages = [
{"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))Quick Links
Llama3.1-SuperDeepFuse
An 8B parameter language model that merges three high-performance distilled models to boost reasoning, instruction-following, and performance in mathematics and coding.
Model Highlights
- Size: 8 billion parameters
- Base: meta-llama/Llama-3.1-8B-Instruct
- Merged Sources:
- Merge Method:
model_stock
Key Capabilities
- Enhanced multi-task reasoning
- Improved mathematical and coding performance
- Multilingual support
Performance Notes
- Maintains Llama 3.1 safety standards
- Suitable for consumer GPU deployment
- Balanced performance across diverse tasks
Considerations
- Still being benchmarked
- Capabilities limited compared to larger model variants
- Can give misleading output like all other language models
- Outputs should be independently verified
Licensing
Follows standard Llama 3.1 usage terms.
Open LLM Leaderboard Evaluation Results
Detailed results can be found here! Summarized results can be found here!
| Metric | Value (%) |
|---|---|
| Average | 27.30 |
| IFEval (0-Shot) | 77.62 |
| BBH (3-Shot) | 29.22 |
| MATH Lvl 5 (4-Shot) | 17.75 |
| GPQA (0-shot) | 3.24 |
| MuSR (0-shot) | 5.13 |
| MMLU-PRO (5-shot) | 30.83 |
- Downloads last month
- 6
Model tree for agentlans/Llama3.1-SuperDeepFuse
Merge model
this model
Evaluation results
- averaged accuracy on IFEval (0-Shot)Open LLM Leaderboard77.620
- normalized accuracy on BBH (3-Shot)test set Open LLM Leaderboard29.220
- exact match on MATH Lvl 5 (4-Shot)test set Open LLM Leaderboard17.750
- acc_norm on GPQA (0-shot)Open LLM Leaderboard3.240
- acc_norm on MuSR (0-shot)Open LLM Leaderboard5.130
- accuracy on MMLU-PRO (5-shot)test set Open LLM Leaderboard30.830
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="agentlans/Llama3.1-SuperDeepFuse") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)