Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
trl
sft
conversational
text-generation-inference
Instructions to use flyingbugs/Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flyingbugs/Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="flyingbugs/Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("flyingbugs/Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01") model = AutoModelForCausalLM.from_pretrained("flyingbugs/Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01") 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
- vLLM
How to use flyingbugs/Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "flyingbugs/Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "flyingbugs/Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/flyingbugs/Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01
- SGLang
How to use flyingbugs/Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01 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 "flyingbugs/Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01" \ --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": "flyingbugs/Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01", "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 "flyingbugs/Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01" \ --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": "flyingbugs/Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use flyingbugs/Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01 with Docker Model Runner:
docker model run hf.co/flyingbugs/Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01
Model save
Browse files- README.md +3 -5
- all_results.json +4 -4
- config.json +1 -1
- train_results.json +4 -4
- trainer_state.json +4 -4
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -1,11 +1,9 @@
|
|
| 1 |
---
|
| 2 |
base_model: flyingbugs/Qwen2.5-Math-7B-Instruct
|
| 3 |
-
datasets: flyingbugs/OpenR1-Math-220k-pruned-keep-0.01-end-start-0.5-acc
|
| 4 |
library_name: transformers
|
| 5 |
model_name: Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01
|
| 6 |
tags:
|
| 7 |
- generated_from_trainer
|
| 8 |
-
- open-r1
|
| 9 |
- trl
|
| 10 |
- sft
|
| 11 |
licence: license
|
|
@@ -13,7 +11,7 @@ licence: license
|
|
| 13 |
|
| 14 |
# Model Card for Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01
|
| 15 |
|
| 16 |
-
This model is a fine-tuned version of [flyingbugs/Qwen2.5-Math-7B-Instruct](https://huggingface.co/flyingbugs/Qwen2.5-Math-7B-Instruct)
|
| 17 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
| 18 |
|
| 19 |
## Quick start
|
|
@@ -29,7 +27,7 @@ print(output["generated_text"])
|
|
| 29 |
|
| 30 |
## Training procedure
|
| 31 |
|
| 32 |
-
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/jjh233/huggingface/runs/
|
| 33 |
|
| 34 |
|
| 35 |
This model was trained with SFT.
|
|
@@ -39,7 +37,7 @@ This model was trained with SFT.
|
|
| 39 |
- TRL: 0.16.0.dev0
|
| 40 |
- Transformers: 4.51.3
|
| 41 |
- Pytorch: 2.5.1
|
| 42 |
-
- Datasets: 3.5.
|
| 43 |
- Tokenizers: 0.21.1
|
| 44 |
|
| 45 |
## Citations
|
|
|
|
| 1 |
---
|
| 2 |
base_model: flyingbugs/Qwen2.5-Math-7B-Instruct
|
|
|
|
| 3 |
library_name: transformers
|
| 4 |
model_name: Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
|
|
|
| 7 |
- trl
|
| 8 |
- sft
|
| 9 |
licence: license
|
|
|
|
| 11 |
|
| 12 |
# Model Card for Qwen2.5-Math-7B-Instruct-Math220k-acc-0.01
|
| 13 |
|
| 14 |
+
This model is a fine-tuned version of [flyingbugs/Qwen2.5-Math-7B-Instruct](https://huggingface.co/flyingbugs/Qwen2.5-Math-7B-Instruct).
|
| 15 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
| 16 |
|
| 17 |
## Quick start
|
|
|
|
| 27 |
|
| 28 |
## Training procedure
|
| 29 |
|
| 30 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/jjh233/huggingface/runs/rzvai21q)
|
| 31 |
|
| 32 |
|
| 33 |
This model was trained with SFT.
|
|
|
|
| 37 |
- TRL: 0.16.0.dev0
|
| 38 |
- Transformers: 4.51.3
|
| 39 |
- Pytorch: 2.5.1
|
| 40 |
+
- Datasets: 3.5.1
|
| 41 |
- Tokenizers: 0.21.1
|
| 42 |
|
| 43 |
## Citations
|
all_results.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"total_flos": 9.33106100089756e+18,
|
| 3 |
-
"train_loss": 0.
|
| 4 |
-
"train_runtime":
|
| 5 |
"train_samples": 93733,
|
| 6 |
-
"train_samples_per_second":
|
| 7 |
-
"train_steps_per_second":
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"total_flos": 9.33106100089756e+18,
|
| 3 |
+
"train_loss": 0.0,
|
| 4 |
+
"train_runtime": 1.548,
|
| 5 |
"train_samples": 93733,
|
| 6 |
+
"train_samples_per_second": 8690.077,
|
| 7 |
+
"train_steps_per_second": 542.645
|
| 8 |
}
|
config.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
| 22 |
"tie_word_embeddings": false,
|
| 23 |
"torch_dtype": "bfloat16",
|
| 24 |
"transformers_version": "4.51.3",
|
| 25 |
-
"use_cache":
|
| 26 |
"use_sliding_window": false,
|
| 27 |
"vocab_size": 152064
|
| 28 |
}
|
|
|
|
| 22 |
"tie_word_embeddings": false,
|
| 23 |
"torch_dtype": "bfloat16",
|
| 24 |
"transformers_version": "4.51.3",
|
| 25 |
+
"use_cache": false,
|
| 26 |
"use_sliding_window": false,
|
| 27 |
"vocab_size": 152064
|
| 28 |
}
|
train_results.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"total_flos": 9.33106100089756e+18,
|
| 3 |
-
"train_loss": 0.
|
| 4 |
-
"train_runtime":
|
| 5 |
"train_samples": 93733,
|
| 6 |
-
"train_samples_per_second":
|
| 7 |
-
"train_steps_per_second":
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"total_flos": 9.33106100089756e+18,
|
| 3 |
+
"train_loss": 0.0,
|
| 4 |
+
"train_runtime": 1.548,
|
| 5 |
"train_samples": 93733,
|
| 6 |
+
"train_samples_per_second": 8690.077,
|
| 7 |
+
"train_steps_per_second": 542.645
|
| 8 |
}
|
trainer_state.json
CHANGED
|
@@ -5893,10 +5893,10 @@
|
|
| 5893 |
"epoch": 2.9910873440285206,
|
| 5894 |
"step": 840,
|
| 5895 |
"total_flos": 9.33106100089756e+18,
|
| 5896 |
-
"train_loss": 0.
|
| 5897 |
-
"train_runtime":
|
| 5898 |
-
"train_samples_per_second":
|
| 5899 |
-
"train_steps_per_second":
|
| 5900 |
}
|
| 5901 |
],
|
| 5902 |
"logging_steps": 1,
|
|
|
|
| 5893 |
"epoch": 2.9910873440285206,
|
| 5894 |
"step": 840,
|
| 5895 |
"total_flos": 9.33106100089756e+18,
|
| 5896 |
+
"train_loss": 0.0,
|
| 5897 |
+
"train_runtime": 1.548,
|
| 5898 |
+
"train_samples_per_second": 8690.077,
|
| 5899 |
+
"train_steps_per_second": 542.645
|
| 5900 |
}
|
| 5901 |
],
|
| 5902 |
"logging_steps": 1,
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 7480
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:724283ca3180d35d8253c4e6f9a0d411edea6c233caecbd6cc7ac147b5ce2b17
|
| 3 |
size 7480
|