Text Generation
Transformers
Safetensors
English
olmo3
text-generation-inference
unsloth
conversational
Instructions to use zycalice/unsloth-olmo3-32B-auto-mlp-0203 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zycalice/unsloth-olmo3-32B-auto-mlp-0203 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="zycalice/unsloth-olmo3-32B-auto-mlp-0203") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("zycalice/unsloth-olmo3-32B-auto-mlp-0203") model = AutoModelForCausalLM.from_pretrained("zycalice/unsloth-olmo3-32B-auto-mlp-0203", 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 zycalice/unsloth-olmo3-32B-auto-mlp-0203 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "zycalice/unsloth-olmo3-32B-auto-mlp-0203" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zycalice/unsloth-olmo3-32B-auto-mlp-0203", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/zycalice/unsloth-olmo3-32B-auto-mlp-0203
- SGLang
How to use zycalice/unsloth-olmo3-32B-auto-mlp-0203 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 "zycalice/unsloth-olmo3-32B-auto-mlp-0203" \ --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": "zycalice/unsloth-olmo3-32B-auto-mlp-0203", "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 "zycalice/unsloth-olmo3-32B-auto-mlp-0203" \ --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": "zycalice/unsloth-olmo3-32B-auto-mlp-0203", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio
How to use zycalice/unsloth-olmo3-32B-auto-mlp-0203 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for zycalice/unsloth-olmo3-32B-auto-mlp-0203 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for zycalice/unsloth-olmo3-32B-auto-mlp-0203 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for zycalice/unsloth-olmo3-32B-auto-mlp-0203 to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="zycalice/unsloth-olmo3-32B-auto-mlp-0203", max_seq_length=2048, ) - Docker Model Runner
How to use zycalice/unsloth-olmo3-32B-auto-mlp-0203 with Docker Model Runner:
docker model run hf.co/zycalice/unsloth-olmo3-32B-auto-mlp-0203
Upload yz_metadata.json with huggingface_hub
Browse files- yz_metadata.json +38 -0
yz_metadata.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "unsloth/Olmo-3.1-32B-Instruct",
|
| 3 |
+
"train_lib":"unsloth",
|
| 4 |
+
"training_file": "../data/auto_incorrect_train_fix.jsonl",
|
| 5 |
+
"test_file": null,
|
| 6 |
+
"finetuned_model_id": "zycalice/unsloth-olmo3-32B-auto-mlp-0203",
|
| 7 |
+
"max_seq_length": 2048,
|
| 8 |
+
"load_in_4bit": false,
|
| 9 |
+
"loss": "sft",
|
| 10 |
+
"is_peft": true,
|
| 11 |
+
"target_modules": [
|
| 12 |
+
"gate_proj",
|
| 13 |
+
"up_proj",
|
| 14 |
+
"down_proj"
|
| 15 |
+
],
|
| 16 |
+
"lora_bias": "none",
|
| 17 |
+
"r": 32,
|
| 18 |
+
"lora_alpha": 64,
|
| 19 |
+
"lora_dropout": 0.0,
|
| 20 |
+
"use_rslora": true,
|
| 21 |
+
"merge_before_push": true,
|
| 22 |
+
"push_to_private": false,
|
| 23 |
+
"epochs": 1,
|
| 24 |
+
"max_steps": null,
|
| 25 |
+
"per_device_train_batch_size": 4,
|
| 26 |
+
"gradient_accumulation_steps": 4,
|
| 27 |
+
"warmup_steps": 5,
|
| 28 |
+
"learning_rate": 1.5e-05,
|
| 29 |
+
"logging_steps": 1,
|
| 30 |
+
"optim": "adamw_8bit",
|
| 31 |
+
"weight_decay": 0.01,
|
| 32 |
+
"lr_scheduler_type": "linear",
|
| 33 |
+
"seed": 0,
|
| 34 |
+
"beta": 0.1,
|
| 35 |
+
"save_steps": 5000,
|
| 36 |
+
"output_dir": "./tmp_olmo3-32b-auto-mlp-0203",
|
| 37 |
+
"train_on_responses_only": true
|
| 38 |
+
}
|