Instructions to use SOULAMA/qwen2.5-coder-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SOULAMA/qwen2.5-coder-ft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SOULAMA/qwen2.5-coder-ft") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SOULAMA/qwen2.5-coder-ft") model = AutoModelForCausalLM.from_pretrained("SOULAMA/qwen2.5-coder-ft") 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 SOULAMA/qwen2.5-coder-ft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SOULAMA/qwen2.5-coder-ft" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SOULAMA/qwen2.5-coder-ft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SOULAMA/qwen2.5-coder-ft
- SGLang
How to use SOULAMA/qwen2.5-coder-ft 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 "SOULAMA/qwen2.5-coder-ft" \ --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": "SOULAMA/qwen2.5-coder-ft", "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 "SOULAMA/qwen2.5-coder-ft" \ --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": "SOULAMA/qwen2.5-coder-ft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SOULAMA/qwen2.5-coder-ft with Docker Model Runner:
docker model run hf.co/SOULAMA/qwen2.5-coder-ft
Training in progress, step 100, 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 73911112
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f956b1e994d2b1e10a2f84f2e2835cc616ba8962109c24efa9f01443358fa73e
|
| 3 |
size 73911112
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 37974277
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:72c4d3335742aa55420e1a41afa81d54b69772f71baadaf41d61c1bb4076b55b
|
| 3 |
size 37974277
|
last-checkpoint/rng_state.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 14645
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2d499969f3af8372a7aaea64957e81c5c7230e0f6b1409a0869b9969760d4169
|
| 3 |
size 14645
|
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:c3519c97843f2700dc6d1fe49e58020a1bf806fc2169b7a247f58bc82cbaeee5
|
| 3 |
size 1465
|
last-checkpoint/trainer_state.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
{
|
| 2 |
-
"best_global_step":
|
| 3 |
-
"best_metric": 0.
|
| 4 |
-
"best_model_checkpoint": "./qwen_coder_results/checkpoint-
|
| 5 |
-
"epoch": 0.
|
| 6 |
"eval_steps": 25,
|
| 7 |
-
"global_step":
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
|
@@ -45,6 +45,36 @@
|
|
| 45 |
"eval_samples_per_second": 0.586,
|
| 46 |
"eval_steps_per_second": 0.293,
|
| 47 |
"step": 50
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
}
|
| 49 |
],
|
| 50 |
"logging_steps": 25,
|
|
@@ -73,7 +103,7 @@
|
|
| 73 |
"attributes": {}
|
| 74 |
}
|
| 75 |
},
|
| 76 |
-
"total_flos":
|
| 77 |
"train_batch_size": 2,
|
| 78 |
"trial_name": null,
|
| 79 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
+
"best_global_step": 100,
|
| 3 |
+
"best_metric": 0.4344141185283661,
|
| 4 |
+
"best_model_checkpoint": "./qwen_coder_results/checkpoint-100",
|
| 5 |
+
"epoch": 0.35555555555555557,
|
| 6 |
"eval_steps": 25,
|
| 7 |
+
"global_step": 100,
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
|
|
|
| 45 |
"eval_samples_per_second": 0.586,
|
| 46 |
"eval_steps_per_second": 0.293,
|
| 47 |
"step": 50
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"epoch": 0.26666666666666666,
|
| 51 |
+
"grad_norm": 0.385348379611969,
|
| 52 |
+
"learning_rate": 0.00017685596144214108,
|
| 53 |
+
"loss": 0.4479352951049805,
|
| 54 |
+
"step": 75
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"epoch": 0.26666666666666666,
|
| 58 |
+
"eval_loss": 0.44333434104919434,
|
| 59 |
+
"eval_runtime": 855.082,
|
| 60 |
+
"eval_samples_per_second": 0.585,
|
| 61 |
+
"eval_steps_per_second": 0.292,
|
| 62 |
+
"step": 75
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"epoch": 0.35555555555555557,
|
| 66 |
+
"grad_norm": 0.33071649074554443,
|
| 67 |
+
"learning_rate": 0.00015500550034448413,
|
| 68 |
+
"loss": 0.42900867462158204,
|
| 69 |
+
"step": 100
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"epoch": 0.35555555555555557,
|
| 73 |
+
"eval_loss": 0.4344141185283661,
|
| 74 |
+
"eval_runtime": 855.1679,
|
| 75 |
+
"eval_samples_per_second": 0.585,
|
| 76 |
+
"eval_steps_per_second": 0.292,
|
| 77 |
+
"step": 100
|
| 78 |
}
|
| 79 |
],
|
| 80 |
"logging_steps": 25,
|
|
|
|
| 103 |
"attributes": {}
|
| 104 |
}
|
| 105 |
},
|
| 106 |
+
"total_flos": 1.1711404920489984e+16,
|
| 107 |
"train_batch_size": 2,
|
| 108 |
"trial_name": null,
|
| 109 |
"trial_params": null
|