Text Generation
Transformers
Safetensors
smollm3
Generated from Trainer
sft
hf_jobs
trl
conversational
Instructions to use Jake/SmolLM3-3B-MathSFT-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jake/SmolLM3-3B-MathSFT-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Jake/SmolLM3-3B-MathSFT-v2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Jake/SmolLM3-3B-MathSFT-v2") model = AutoModelForCausalLM.from_pretrained("Jake/SmolLM3-3B-MathSFT-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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Jake/SmolLM3-3B-MathSFT-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Jake/SmolLM3-3B-MathSFT-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": "Jake/SmolLM3-3B-MathSFT-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Jake/SmolLM3-3B-MathSFT-v2
- SGLang
How to use Jake/SmolLM3-3B-MathSFT-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 "Jake/SmolLM3-3B-MathSFT-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": "Jake/SmolLM3-3B-MathSFT-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 "Jake/SmolLM3-3B-MathSFT-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": "Jake/SmolLM3-3B-MathSFT-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Jake/SmolLM3-3B-MathSFT-v2 with Docker Model Runner:
docker model run hf.co/Jake/SmolLM3-3B-MathSFT-v2
Delete adapter_config.json with huggingface_hub
Browse files- adapter_config.json +0 -46
adapter_config.json
DELETED
|
@@ -1,46 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"alora_invocation_tokens": null,
|
| 3 |
-
"alpha_pattern": {},
|
| 4 |
-
"arrow_config": null,
|
| 5 |
-
"auto_mapping": null,
|
| 6 |
-
"base_model_name_or_path": "HuggingFaceTB/SmolLM3-3B",
|
| 7 |
-
"bias": "none",
|
| 8 |
-
"corda_config": null,
|
| 9 |
-
"ensure_weight_tying": false,
|
| 10 |
-
"eva_config": null,
|
| 11 |
-
"exclude_modules": null,
|
| 12 |
-
"fan_in_fan_out": false,
|
| 13 |
-
"inference_mode": true,
|
| 14 |
-
"init_lora_weights": true,
|
| 15 |
-
"layer_replication": null,
|
| 16 |
-
"layers_pattern": null,
|
| 17 |
-
"layers_to_transform": null,
|
| 18 |
-
"loftq_config": {},
|
| 19 |
-
"lora_alpha": 32,
|
| 20 |
-
"lora_bias": false,
|
| 21 |
-
"lora_dropout": 0.05,
|
| 22 |
-
"megatron_config": null,
|
| 23 |
-
"megatron_core": "megatron.core",
|
| 24 |
-
"modules_to_save": null,
|
| 25 |
-
"peft_type": "LORA",
|
| 26 |
-
"peft_version": "0.18.1",
|
| 27 |
-
"qalora_group_size": 16,
|
| 28 |
-
"r": 16,
|
| 29 |
-
"rank_pattern": {},
|
| 30 |
-
"revision": null,
|
| 31 |
-
"target_modules": [
|
| 32 |
-
"up_proj",
|
| 33 |
-
"o_proj",
|
| 34 |
-
"gate_proj",
|
| 35 |
-
"v_proj",
|
| 36 |
-
"q_proj",
|
| 37 |
-
"k_proj",
|
| 38 |
-
"down_proj"
|
| 39 |
-
],
|
| 40 |
-
"target_parameters": null,
|
| 41 |
-
"task_type": "CAUSAL_LM",
|
| 42 |
-
"trainable_token_indices": null,
|
| 43 |
-
"use_dora": false,
|
| 44 |
-
"use_qalora": false,
|
| 45 |
-
"use_rslora": false
|
| 46 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|