Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
cogzero
trl
sft
kordn
conversational
text-generation-inference
Instructions to use maxkordn/Qwen2.5-Coder-7B-Instruct-Solver-RFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use maxkordn/Qwen2.5-Coder-7B-Instruct-Solver-RFT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="maxkordn/Qwen2.5-Coder-7B-Instruct-Solver-RFT") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("maxkordn/Qwen2.5-Coder-7B-Instruct-Solver-RFT") model = AutoModelForCausalLM.from_pretrained("maxkordn/Qwen2.5-Coder-7B-Instruct-Solver-RFT", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use maxkordn/Qwen2.5-Coder-7B-Instruct-Solver-RFT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "maxkordn/Qwen2.5-Coder-7B-Instruct-Solver-RFT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "maxkordn/Qwen2.5-Coder-7B-Instruct-Solver-RFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/maxkordn/Qwen2.5-Coder-7B-Instruct-Solver-RFT
- SGLang
How to use maxkordn/Qwen2.5-Coder-7B-Instruct-Solver-RFT 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 "maxkordn/Qwen2.5-Coder-7B-Instruct-Solver-RFT" \ --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": "maxkordn/Qwen2.5-Coder-7B-Instruct-Solver-RFT", "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 "maxkordn/Qwen2.5-Coder-7B-Instruct-Solver-RFT" \ --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": "maxkordn/Qwen2.5-Coder-7B-Instruct-Solver-RFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use maxkordn/Qwen2.5-Coder-7B-Instruct-Solver-RFT with Docker Model Runner:
docker model run hf.co/maxkordn/Qwen2.5-Coder-7B-Instruct-Solver-RFT
Model save
Browse files- all_results.json +6 -11
- train_results.json +6 -6
- trainer_state.json +0 -0
all_results.json
CHANGED
|
@@ -1,13 +1,8 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
| 3 |
-
"
|
| 4 |
-
"
|
| 5 |
-
"
|
| 6 |
-
"
|
| 7 |
-
"
|
| 8 |
-
"train_loss": 0.04186144905114496,
|
| 9 |
-
"train_runtime": 7507.8207,
|
| 10 |
-
"train_samples": 14169,
|
| 11 |
-
"train_samples_per_second": 9.436,
|
| 12 |
-
"train_steps_per_second": 0.074
|
| 13 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"total_flos": 9.471448716243108e+17,
|
| 3 |
+
"train_loss": 0.017112477973285245,
|
| 4 |
+
"train_runtime": 9496.6509,
|
| 5 |
+
"train_samples": 15697,
|
| 6 |
+
"train_samples_per_second": 8.264,
|
| 7 |
+
"train_steps_per_second": 0.065
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
}
|
train_results.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
-
"total_flos":
|
| 3 |
-
"train_loss": 0.
|
| 4 |
-
"train_runtime":
|
| 5 |
-
"train_samples":
|
| 6 |
-
"train_samples_per_second":
|
| 7 |
-
"train_steps_per_second": 0.
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"total_flos": 9.471448716243108e+17,
|
| 3 |
+
"train_loss": 0.017112477973285245,
|
| 4 |
+
"train_runtime": 9496.6509,
|
| 5 |
+
"train_samples": 15697,
|
| 6 |
+
"train_samples_per_second": 8.264,
|
| 7 |
+
"train_steps_per_second": 0.065
|
| 8 |
}
|
trainer_state.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|