Text Generation
Transformers
Safetensors
GGUF
English
qwen3
small
supra
supra2
sota
instruct
chat
chatml
smoltalk
conversation
conversational
text-generation-inference
Instructions to use SupraLabs/Supra2-100M-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SupraLabs/Supra2-100M-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SupraLabs/Supra2-100M-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SupraLabs/Supra2-100M-Instruct") model = AutoModelForCausalLM.from_pretrained("SupraLabs/Supra2-100M-Instruct", 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
- llama.cpp
How to use SupraLabs/Supra2-100M-Instruct with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf SupraLabs/Supra2-100M-Instruct:F16 # Run inference directly in the terminal: llama cli -hf SupraLabs/Supra2-100M-Instruct:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf SupraLabs/Supra2-100M-Instruct:F16 # Run inference directly in the terminal: llama cli -hf SupraLabs/Supra2-100M-Instruct:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf SupraLabs/Supra2-100M-Instruct:F16 # Run inference directly in the terminal: ./llama-cli -hf SupraLabs/Supra2-100M-Instruct:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf SupraLabs/Supra2-100M-Instruct:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf SupraLabs/Supra2-100M-Instruct:F16
Use Docker
docker model run hf.co/SupraLabs/Supra2-100M-Instruct:F16
- LM Studio
- Jan
- vLLM
How to use SupraLabs/Supra2-100M-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SupraLabs/Supra2-100M-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SupraLabs/Supra2-100M-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SupraLabs/Supra2-100M-Instruct:F16
- SGLang
How to use SupraLabs/Supra2-100M-Instruct 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 "SupraLabs/Supra2-100M-Instruct" \ --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": "SupraLabs/Supra2-100M-Instruct", "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 "SupraLabs/Supra2-100M-Instruct" \ --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": "SupraLabs/Supra2-100M-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use SupraLabs/Supra2-100M-Instruct with Ollama:
ollama run hf.co/SupraLabs/Supra2-100M-Instruct:F16
- Unsloth Desktop
- Docker Model Runner
How to use SupraLabs/Supra2-100M-Instruct with Docker Model Runner:
docker model run hf.co/SupraLabs/Supra2-100M-Instruct:F16
- Lemonade
How to use SupraLabs/Supra2-100M-Instruct with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SupraLabs/Supra2-100M-Instruct:F16
Run and chat with the model
lemonade run user.Supra2-100M-Instruct-F16
List all available models
lemonade list
- Atomic Chat
Upload 7 files
Browse files- chat_template.jinja +4 -0
- config.json +47 -0
- generation_config.json +10 -0
- model.safetensors +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +36 -0
- training_args.bin +3 -0
chat_template.jinja
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% for m in messages %}<|im_start|>{{ m['role'] }}
|
| 2 |
+
{{ m['content'] }}<|im_end|>
|
| 3 |
+
{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant
|
| 4 |
+
{% endif %}
|
config.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3ForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"dtype": "float32",
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"head_dim": 64,
|
| 11 |
+
"hidden_act": "silu",
|
| 12 |
+
"hidden_size": 768,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 2048,
|
| 15 |
+
"layer_types": [
|
| 16 |
+
"full_attention",
|
| 17 |
+
"full_attention",
|
| 18 |
+
"full_attention",
|
| 19 |
+
"full_attention",
|
| 20 |
+
"full_attention",
|
| 21 |
+
"full_attention",
|
| 22 |
+
"full_attention",
|
| 23 |
+
"full_attention",
|
| 24 |
+
"full_attention",
|
| 25 |
+
"full_attention",
|
| 26 |
+
"full_attention",
|
| 27 |
+
"full_attention"
|
| 28 |
+
],
|
| 29 |
+
"max_position_embeddings": 2048,
|
| 30 |
+
"max_window_layers": 28,
|
| 31 |
+
"model_type": "qwen3",
|
| 32 |
+
"num_attention_heads": 12,
|
| 33 |
+
"num_hidden_layers": 12,
|
| 34 |
+
"num_key_value_heads": 4,
|
| 35 |
+
"pad_token_id": 1,
|
| 36 |
+
"rms_norm_eps": 1e-06,
|
| 37 |
+
"rope_parameters": {
|
| 38 |
+
"rope_theta": 10000,
|
| 39 |
+
"rope_type": "default"
|
| 40 |
+
},
|
| 41 |
+
"sliding_window": null,
|
| 42 |
+
"tie_word_embeddings": true,
|
| 43 |
+
"transformers_version": "5.8.1",
|
| 44 |
+
"use_cache": true,
|
| 45 |
+
"use_sliding_window": false,
|
| 46 |
+
"vocab_size": 32768
|
| 47 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 0,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"output_attentions": false,
|
| 6 |
+
"output_hidden_states": false,
|
| 7 |
+
"pad_token_id": 1,
|
| 8 |
+
"transformers_version": "5.8.1",
|
| 9 |
+
"use_cache": true
|
| 10 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a13180cc056c58e037cf0e22092751cac1c5704d246cd60ac981a1544a005999
|
| 3 |
+
size 402750928
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<s>",
|
| 4 |
+
"eos_token": "</s>",
|
| 5 |
+
"extra_special_tokens": [
|
| 6 |
+
"<|im_start|>",
|
| 7 |
+
"<|im_end|>",
|
| 8 |
+
"<think>",
|
| 9 |
+
"</think>",
|
| 10 |
+
"<tool_call>",
|
| 11 |
+
"</tool_call>",
|
| 12 |
+
"<tool_response>",
|
| 13 |
+
"</tool_response>",
|
| 14 |
+
"<|reserved_0|>",
|
| 15 |
+
"<|reserved_1|>",
|
| 16 |
+
"<|reserved_2|>",
|
| 17 |
+
"<|reserved_3|>",
|
| 18 |
+
"<|reserved_4|>",
|
| 19 |
+
"<|reserved_5|>",
|
| 20 |
+
"<|reserved_6|>",
|
| 21 |
+
"<|reserved_7|>",
|
| 22 |
+
"<|reserved_8|>",
|
| 23 |
+
"<|reserved_9|>",
|
| 24 |
+
"<|reserved_10|>",
|
| 25 |
+
"<|reserved_11|>",
|
| 26 |
+
"<|reserved_12|>",
|
| 27 |
+
"<|reserved_13|>",
|
| 28 |
+
"<|reserved_14|>",
|
| 29 |
+
"<|reserved_15|>"
|
| 30 |
+
],
|
| 31 |
+
"mask_token": "<mask>",
|
| 32 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 33 |
+
"pad_token": "<pad>",
|
| 34 |
+
"tokenizer_class": "TokenizersBackend",
|
| 35 |
+
"unk_token": "<unk>"
|
| 36 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dc9afe5ab0781579d822544d89006e0740e48b7c1c370538c8e8b403219ecfc2
|
| 3 |
+
size 5329
|