Instructions to use T145/ZEUS-8B-V2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use T145/ZEUS-8B-V2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="T145/ZEUS-8B-V2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("T145/ZEUS-8B-V2") model = AutoModelForCausalLM.from_pretrained("T145/ZEUS-8B-V2") 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 T145/ZEUS-8B-V2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "T145/ZEUS-8B-V2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "T145/ZEUS-8B-V2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/T145/ZEUS-8B-V2
- SGLang
How to use T145/ZEUS-8B-V2 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 "T145/ZEUS-8B-V2" \ --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": "T145/ZEUS-8B-V2", "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 "T145/ZEUS-8B-V2" \ --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": "T145/ZEUS-8B-V2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use T145/ZEUS-8B-V2 with Docker Model Runner:
docker model run hf.co/T145/ZEUS-8B-V2
ZEUS 8B 🌩️ V2
This is a merge of pre-trained language models created using mergekit.
Merge Details
Merge Method
This model was merged using the DARE TIES merge method using unsloth/Meta-Llama-3.1-8B-Instruct as a base.
Models Merged
The following models were included in the merge:
- arcee-ai/Llama-3.1-SuperNova-Lite
- akjindal53244/Llama-3.1-Storm-8B
- Orenguteng/Llama-3.1-8B-Lexi-Uncensored-V2
Configuration
The following YAML configuration was used to produce this model:
base_model: unsloth/Meta-Llama-3.1-8B-Instruct
dtype: bfloat16
merge_method: dare_ties
parameters:
int8_mask: 1.0
slices:
- sources:
- layer_range: [0, 32]
model: akjindal53244/Llama-3.1-Storm-8B
parameters:
density: 0.8
weight: 0.25
- layer_range: [0, 32]
model: arcee-ai/Llama-3.1-SuperNova-Lite
parameters:
density: 0.8
weight: 0.33
- layer_range: [0, 32]
model: Orenguteng/Llama-3.1-8B-Lexi-Uncensored-V2
parameters:
density: 0.8
weight: 0.42
- layer_range: [0, 32]
model: unsloth/Meta-Llama-3.1-8B-Instruct
tokenizer_source: base
Open LLM Leaderboard Evaluation Results
Detailed results can be found here! Based on the listed rankings as of 4/12/24, is the top-rank 8B model.
| Metric | Value |
|---|---|
| Avg. | 30.07 |
| IFEval (0-Shot) | 80.29 |
| BBH (3-Shot) | 31.61 |
| MATH Lvl 5 (4-Shot) | 21.15 |
| GPQA (0-shot) | 6.94 |
| MuSR (0-shot) | 8.24 |
| MMLU-PRO (5-shot) | 32.18 |
Inference Settings
Personal recommendations are to use a i1-Q4_K_M quant with these settings:
num_ctx = 4096
repeat_penalty = 1.2
temperature = 0.85
tfs_z = 1.4
top_k = 0 # Change to 40+ if you're roleplaying
top_p = 1 # Change to 0.9 if top_k > 0
Other recommendations can be found on this paper on mobile LLMs, this paper on balancing model parameters, and this Reddit post about tweaking Llama 3.1 parameters.
- Downloads last month
- 6
Model tree for T145/ZEUS-8B-V2
Space using T145/ZEUS-8B-V2 1
Papers for T145/ZEUS-8B-V2
Resolving Interference When Merging Models
Evaluation results
- strict accuracy on IFEval (0-Shot)Open LLM Leaderboard80.290
- normalized accuracy on BBH (3-Shot)Open LLM Leaderboard31.610
- exact match on MATH Lvl 5 (4-Shot)Open LLM Leaderboard21.150
- acc_norm on GPQA (0-shot)Open LLM Leaderboard6.940
- acc_norm on MuSR (0-shot)Open LLM Leaderboard8.240
- accuracy on MMLU-PRO (5-shot)test set Open LLM Leaderboard32.180