Text Generation
Transformers
Safetensors
English
qwen2
distillation
coding
agentic
qwen2.5
kimi-k3
gpt-5.6
fable-5
frontier-models
qlora
conversational
text-generation-inference
Instructions to use Pluto-AI-Labs/Atlas-Frontier-Distill-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Pluto-AI-Labs/Atlas-Frontier-Distill-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Pluto-AI-Labs/Atlas-Frontier-Distill-3B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Pluto-AI-Labs/Atlas-Frontier-Distill-3B") model = AutoModelForCausalLM.from_pretrained("Pluto-AI-Labs/Atlas-Frontier-Distill-3B", device_map="auto") 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Pluto-AI-Labs/Atlas-Frontier-Distill-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Pluto-AI-Labs/Atlas-Frontier-Distill-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Pluto-AI-Labs/Atlas-Frontier-Distill-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Pluto-AI-Labs/Atlas-Frontier-Distill-3B
- SGLang
How to use Pluto-AI-Labs/Atlas-Frontier-Distill-3B 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 "Pluto-AI-Labs/Atlas-Frontier-Distill-3B" \ --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": "Pluto-AI-Labs/Atlas-Frontier-Distill-3B", "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 "Pluto-AI-Labs/Atlas-Frontier-Distill-3B" \ --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": "Pluto-AI-Labs/Atlas-Frontier-Distill-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Pluto-AI-Labs/Atlas-Frontier-Distill-3B with Docker Model Runner:
docker model run hf.co/Pluto-AI-Labs/Atlas-Frontier-Distill-3B
Upload Qwen2ForCausalLM
Browse files- README.md +0 -3
- config.json +5 -20
- generation_config.json +2 -1
- model.safetensors +2 -2
README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
-
|
| 6 |
tags:
|
| 7 |
- distillation
|
| 8 |
- coding
|
|
@@ -13,11 +12,9 @@ tags:
|
|
| 13 |
- fable-5
|
| 14 |
- frontier-models
|
| 15 |
- qlora
|
| 16 |
-
|
| 17 |
base_model: Qwen/Qwen2.5-Coder-3B-Instruct
|
| 18 |
pipeline_tag: text-generation
|
| 19 |
library_name: transformers
|
| 20 |
-
|
| 21 |
datasets:
|
| 22 |
- Siddh07ETH/Atlas-Frontier-Model-Traces
|
| 23 |
---
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- en
|
|
|
|
| 5 |
tags:
|
| 6 |
- distillation
|
| 7 |
- coding
|
|
|
|
| 12 |
- fable-5
|
| 13 |
- frontier-models
|
| 14 |
- qlora
|
|
|
|
| 15 |
base_model: Qwen/Qwen2.5-Coder-3B-Instruct
|
| 16 |
pipeline_tag: text-generation
|
| 17 |
library_name: transformers
|
|
|
|
| 18 |
datasets:
|
| 19 |
- Siddh07ETH/Atlas-Frontier-Model-Traces
|
| 20 |
---
|
config.json
CHANGED
|
@@ -3,8 +3,8 @@
|
|
| 3 |
"Qwen2ForCausalLM"
|
| 4 |
],
|
| 5 |
"attention_dropout": 0.0,
|
| 6 |
-
"bos_token_id":
|
| 7 |
-
"dtype": "
|
| 8 |
"eos_token_id": 151645,
|
| 9 |
"hidden_act": "silu",
|
| 10 |
"hidden_size": 2048,
|
|
@@ -54,22 +54,7 @@
|
|
| 54 |
"num_attention_heads": 16,
|
| 55 |
"num_hidden_layers": 36,
|
| 56 |
"num_key_value_heads": 2,
|
| 57 |
-
"pad_token_id":
|
| 58 |
-
"quantization_config": {
|
| 59 |
-
"_load_in_4bit": true,
|
| 60 |
-
"_load_in_8bit": false,
|
| 61 |
-
"bnb_4bit_compute_dtype": "float16",
|
| 62 |
-
"bnb_4bit_quant_storage": "uint8",
|
| 63 |
-
"bnb_4bit_quant_type": "nf4",
|
| 64 |
-
"bnb_4bit_use_double_quant": false,
|
| 65 |
-
"llm_int8_enable_fp32_cpu_offload": false,
|
| 66 |
-
"llm_int8_has_fp16_weight": false,
|
| 67 |
-
"llm_int8_skip_modules": null,
|
| 68 |
-
"llm_int8_threshold": 6.0,
|
| 69 |
-
"load_in_4bit": true,
|
| 70 |
-
"load_in_8bit": false,
|
| 71 |
-
"quant_method": "bitsandbytes"
|
| 72 |
-
},
|
| 73 |
"rms_norm_eps": 1e-06,
|
| 74 |
"rope_parameters": {
|
| 75 |
"rope_theta": 1000000.0,
|
|
@@ -77,8 +62,8 @@
|
|
| 77 |
},
|
| 78 |
"sliding_window": null,
|
| 79 |
"tie_word_embeddings": true,
|
| 80 |
-
"transformers_version": "5.
|
| 81 |
-
"use_cache":
|
| 82 |
"use_sliding_window": false,
|
| 83 |
"vocab_size": 151936
|
| 84 |
}
|
|
|
|
| 3 |
"Qwen2ForCausalLM"
|
| 4 |
],
|
| 5 |
"attention_dropout": 0.0,
|
| 6 |
+
"bos_token_id": 151643,
|
| 7 |
+
"dtype": "float16",
|
| 8 |
"eos_token_id": 151645,
|
| 9 |
"hidden_act": "silu",
|
| 10 |
"hidden_size": 2048,
|
|
|
|
| 54 |
"num_attention_heads": 16,
|
| 55 |
"num_hidden_layers": 36,
|
| 56 |
"num_key_value_heads": 2,
|
| 57 |
+
"pad_token_id": null,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
"rms_norm_eps": 1e-06,
|
| 59 |
"rope_parameters": {
|
| 60 |
"rope_theta": 1000000.0,
|
|
|
|
| 62 |
},
|
| 63 |
"sliding_window": null,
|
| 64 |
"tie_word_embeddings": true,
|
| 65 |
+
"transformers_version": "5.0.0",
|
| 66 |
+
"use_cache": true,
|
| 67 |
"use_sliding_window": false,
|
| 68 |
"vocab_size": 151936
|
| 69 |
}
|
generation_config.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
{
|
|
|
|
| 2 |
"do_sample": true,
|
| 3 |
"eos_token_id": [
|
| 4 |
151645,
|
|
@@ -9,5 +10,5 @@
|
|
| 9 |
"temperature": 0.7,
|
| 10 |
"top_k": 20,
|
| 11 |
"top_p": 0.8,
|
| 12 |
-
"transformers_version": "5.
|
| 13 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
"do_sample": true,
|
| 4 |
"eos_token_id": [
|
| 5 |
151645,
|
|
|
|
| 10 |
"temperature": 0.7,
|
| 11 |
"top_k": 20,
|
| 12 |
"top_p": 0.8,
|
| 13 |
+
"transformers_version": "5.0.0"
|
| 14 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b7240509c3565a383f70f5161ef489d77c65ee8a5eca9ae03279bef4706da7a
|
| 3 |
+
size 6171926680
|