Text Generation
Transformers
Safetensors
PEFT
English
unsloth
qwen2
qwen2.5
lora
sft
code
reasoning
codex
trl
Instructions to use razor5050/codex-qwen2-5-0-5b-unsloth-codex1m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use razor5050/codex-qwen2-5-0-5b-unsloth-codex1m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="razor5050/codex-qwen2-5-0-5b-unsloth-codex1m")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("razor5050/codex-qwen2-5-0-5b-unsloth-codex1m", device_map="auto") - PEFT
How to use razor5050/codex-qwen2-5-0-5b-unsloth-codex1m with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use razor5050/codex-qwen2-5-0-5b-unsloth-codex1m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "razor5050/codex-qwen2-5-0-5b-unsloth-codex1m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "razor5050/codex-qwen2-5-0-5b-unsloth-codex1m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/razor5050/codex-qwen2-5-0-5b-unsloth-codex1m
- SGLang
How to use razor5050/codex-qwen2-5-0-5b-unsloth-codex1m 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 "razor5050/codex-qwen2-5-0-5b-unsloth-codex1m" \ --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": "razor5050/codex-qwen2-5-0-5b-unsloth-codex1m", "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 "razor5050/codex-qwen2-5-0-5b-unsloth-codex1m" \ --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": "razor5050/codex-qwen2-5-0-5b-unsloth-codex1m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use razor5050/codex-qwen2-5-0-5b-unsloth-codex1m with Docker Model Runner:
docker model run hf.co/razor5050/codex-qwen2-5-0-5b-unsloth-codex1m
Mark under8000 complete
Browse files
metrics_under8000/status.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
-
"updated_at": "2026-05-
|
| 3 |
-
"phase": "
|
| 4 |
"dataset_dir": "/workspace/datasets/codex_qwen_chatml_under8000",
|
| 5 |
"filter_meta": {
|
| 6 |
"done": true,
|
|
@@ -52,5 +52,11 @@
|
|
| 52 |
"train_loss": 0.5639091513346053,
|
| 53 |
"epoch": 1.0
|
| 54 |
},
|
| 55 |
-
"checkpoint": "checkpoints_under8000/checkpoint-74653"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"updated_at": "2026-05-12T03:08:45.638267+00:00",
|
| 3 |
+
"phase": "complete",
|
| 4 |
"dataset_dir": "/workspace/datasets/codex_qwen_chatml_under8000",
|
| 5 |
"filter_meta": {
|
| 6 |
"done": true,
|
|
|
|
| 52 |
"train_loss": 0.5639091513346053,
|
| 53 |
"epoch": 1.0
|
| 54 |
},
|
| 55 |
+
"checkpoint": "checkpoints_under8000/checkpoint-74653",
|
| 56 |
+
"hf_repo": "razor5050/codex-qwen2-5-0-5b-unsloth-codex1m",
|
| 57 |
+
"final_step": 74653,
|
| 58 |
+
"latest_loss": 0.7097312450408936,
|
| 59 |
+
"latest_eval_loss": 0.7063287496566772,
|
| 60 |
+
"inference_samples": 6,
|
| 61 |
+
"deliverable": "base_model_plus_lora_adapter_option_a"
|
| 62 |
}
|