Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
rl-swarm
grpo
gensyn
I am eager frisky salamander
trl
genrl-swarm
I am eager_frisky_salamander
conversational
text-generation-inference
Instructions to use rariruluis/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-eager_frisky_salamander with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rariruluis/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-eager_frisky_salamander with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rariruluis/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-eager_frisky_salamander") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("rariruluis/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-eager_frisky_salamander") model = AutoModelForCausalLM.from_pretrained("rariruluis/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-eager_frisky_salamander", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rariruluis/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-eager_frisky_salamander with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rariruluis/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-eager_frisky_salamander" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rariruluis/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-eager_frisky_salamander", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/rariruluis/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-eager_frisky_salamander
- SGLang
How to use rariruluis/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-eager_frisky_salamander 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 "rariruluis/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-eager_frisky_salamander" \ --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": "rariruluis/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-eager_frisky_salamander", "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 "rariruluis/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-eager_frisky_salamander" \ --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": "rariruluis/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-eager_frisky_salamander", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use rariruluis/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-eager_frisky_salamander with Docker Model Runner:
docker model run hf.co/rariruluis/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-eager_frisky_salamander
End of training
Browse files- all_results.json +2 -2
- train_results.json +2 -2
- trainer_state.json +2 -2
all_results.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"total_flos": 0.0,
|
| 3 |
"train_loss": 0.0,
|
| 4 |
-
"train_runtime":
|
| 5 |
"train_samples": 14,
|
| 6 |
-
"train_samples_per_second": 0.
|
| 7 |
"train_steps_per_second": 0.006
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"total_flos": 0.0,
|
| 3 |
"train_loss": 0.0,
|
| 4 |
+
"train_runtime": 3108.2841,
|
| 5 |
"train_samples": 14,
|
| 6 |
+
"train_samples_per_second": 0.051,
|
| 7 |
"train_steps_per_second": 0.006
|
| 8 |
}
|
train_results.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"total_flos": 0.0,
|
| 3 |
"train_loss": 0.0,
|
| 4 |
-
"train_runtime":
|
| 5 |
"train_samples": 14,
|
| 6 |
-
"train_samples_per_second": 0.
|
| 7 |
"train_steps_per_second": 0.006
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"total_flos": 0.0,
|
| 3 |
"train_loss": 0.0,
|
| 4 |
+
"train_runtime": 3108.2841,
|
| 5 |
"train_samples": 14,
|
| 6 |
+
"train_samples_per_second": 0.051,
|
| 7 |
"train_steps_per_second": 0.006
|
| 8 |
}
|
trainer_state.json
CHANGED
|
@@ -204,8 +204,8 @@
|
|
| 204 |
"step": 20,
|
| 205 |
"total_flos": 0.0,
|
| 206 |
"train_loss": 0.0,
|
| 207 |
-
"train_runtime":
|
| 208 |
-
"train_samples_per_second": 0.
|
| 209 |
"train_steps_per_second": 0.006
|
| 210 |
}
|
| 211 |
],
|
|
|
|
| 204 |
"step": 20,
|
| 205 |
"total_flos": 0.0,
|
| 206 |
"train_loss": 0.0,
|
| 207 |
+
"train_runtime": 3108.2841,
|
| 208 |
+
"train_samples_per_second": 0.051,
|
| 209 |
"train_steps_per_second": 0.006
|
| 210 |
}
|
| 211 |
],
|