Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
unsloth
trl
sft
text-generation-inference
Instructions to use Thunderbolts123/UltraThinker-Coder-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Thunderbolts123/UltraThinker-Coder-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Thunderbolts123/UltraThinker-Coder-3B")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Thunderbolts123/UltraThinker-Coder-3B") model = AutoModelForMultimodalLM.from_pretrained("Thunderbolts123/UltraThinker-Coder-3B") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Thunderbolts123/UltraThinker-Coder-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Thunderbolts123/UltraThinker-Coder-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Thunderbolts123/UltraThinker-Coder-3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Thunderbolts123/UltraThinker-Coder-3B
- SGLang
How to use Thunderbolts123/UltraThinker-Coder-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 "Thunderbolts123/UltraThinker-Coder-3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Thunderbolts123/UltraThinker-Coder-3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "Thunderbolts123/UltraThinker-Coder-3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Thunderbolts123/UltraThinker-Coder-3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Studio
How to use Thunderbolts123/UltraThinker-Coder-3B 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 Thunderbolts123/UltraThinker-Coder-3B 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 Thunderbolts123/UltraThinker-Coder-3B to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Thunderbolts123/UltraThinker-Coder-3B to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Thunderbolts123/UltraThinker-Coder-3B", max_seq_length=2048, ) - Docker Model Runner
How to use Thunderbolts123/UltraThinker-Coder-3B with Docker Model Runner:
docker model run hf.co/Thunderbolts123/UltraThinker-Coder-3B
Training in progress, step 601, checkpoint
Browse files
last-checkpoint/adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 479005064
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:85a35a49f7a375ccf45c8b6862c08433a238b84ab0b8f77eccda10015593972b
|
| 3 |
size 479005064
|
last-checkpoint/optimizer.pt
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:952892e2de0cd5dd0dc6d49f83e693c54a5e795cd6f835e631e5e8d767de4027
|
| 3 |
+
size 245120307
|
last-checkpoint/scaler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1383
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9e68b126d91ada6b2a15de35877a8784ac1df577c0232bb3851418e6986ab51c
|
| 3 |
size 1383
|
last-checkpoint/scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1465
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6fd20fe122af3fdd417b7d19c9e5bcdee8b5d4ad2dec83902fd7dc83ef928aa8
|
| 3 |
size 1465
|
last-checkpoint/trainer_state.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
| 2 |
"best_global_step": null,
|
| 3 |
"best_metric": null,
|
| 4 |
"best_model_checkpoint": null,
|
| 5 |
-
"epoch": 0.
|
| 6 |
"eval_steps": 500,
|
| 7 |
-
"global_step":
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
|
@@ -431,7 +431,7 @@
|
|
| 431 |
}
|
| 432 |
],
|
| 433 |
"logging_steps": 10,
|
| 434 |
-
"max_steps":
|
| 435 |
"num_input_tokens_seen": 0,
|
| 436 |
"num_train_epochs": 1,
|
| 437 |
"save_steps": 200,
|
|
@@ -442,12 +442,12 @@
|
|
| 442 |
"should_evaluate": false,
|
| 443 |
"should_log": false,
|
| 444 |
"should_save": true,
|
| 445 |
-
"should_training_stop":
|
| 446 |
},
|
| 447 |
"attributes": {}
|
| 448 |
}
|
| 449 |
},
|
| 450 |
-
"total_flos": 4.
|
| 451 |
"train_batch_size": 1,
|
| 452 |
"trial_name": null,
|
| 453 |
"trial_params": null
|
|
|
|
| 2 |
"best_global_step": null,
|
| 3 |
"best_metric": null,
|
| 4 |
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 0.4808,
|
| 6 |
"eval_steps": 500,
|
| 7 |
+
"global_step": 601,
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
|
|
|
| 431 |
}
|
| 432 |
],
|
| 433 |
"logging_steps": 10,
|
| 434 |
+
"max_steps": 200,
|
| 435 |
"num_input_tokens_seen": 0,
|
| 436 |
"num_train_epochs": 1,
|
| 437 |
"save_steps": 200,
|
|
|
|
| 442 |
"should_evaluate": false,
|
| 443 |
"should_log": false,
|
| 444 |
"should_save": true,
|
| 445 |
+
"should_training_stop": true
|
| 446 |
},
|
| 447 |
"attributes": {}
|
| 448 |
}
|
| 449 |
},
|
| 450 |
+
"total_flos": 4.942674072376934e+16,
|
| 451 |
"train_batch_size": 1,
|
| 452 |
"trial_name": null,
|
| 453 |
"trial_params": null
|
last-checkpoint/training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5649
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bc0b22ebeaaf180f8787a489da4f7c00cc879f28682fe9951bb43220f3507fc9
|
| 3 |
size 5649
|