Instructions to use kishan51/variable_grpo_final with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use kishan51/variable_grpo_final with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen2.5-0.5B") model = PeftModel.from_pretrained(base_model, "kishan51/variable_grpo_final") - Transformers
How to use kishan51/variable_grpo_final with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kishan51/variable_grpo_final") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("kishan51/variable_grpo_final", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use kishan51/variable_grpo_final with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kishan51/variable_grpo_final" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kishan51/variable_grpo_final", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kishan51/variable_grpo_final
- SGLang
How to use kishan51/variable_grpo_final 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 "kishan51/variable_grpo_final" \ --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": "kishan51/variable_grpo_final", "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 "kishan51/variable_grpo_final" \ --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": "kishan51/variable_grpo_final", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio new
How to use kishan51/variable_grpo_final with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for kishan51/variable_grpo_final to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for kishan51/variable_grpo_final to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for kishan51/variable_grpo_final to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="kishan51/variable_grpo_final", max_seq_length=2048, ) - Docker Model Runner
How to use kishan51/variable_grpo_final with Docker Model Runner:
docker model run hf.co/kishan51/variable_grpo_final
Upload folder using huggingface_hub
Browse files- README.md +2 -2
- adapter_config.json +8 -8
- adapter_model.safetensors +2 -2
- added_tokens.json +1 -5
- tokenizer.json +2 -2
- tokenizer_config.json +0 -32
README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
---
|
| 2 |
-
base_model: unsloth/
|
| 3 |
library_name: peft
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
tags:
|
| 6 |
-
- base_model:adapter:unsloth/
|
| 7 |
- grpo
|
| 8 |
- lora
|
| 9 |
- transformers
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model: unsloth/Qwen2.5-0.5B
|
| 3 |
library_name: peft
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
tags:
|
| 6 |
+
- base_model:adapter:unsloth/Qwen2.5-0.5B
|
| 7 |
- grpo
|
| 8 |
- lora
|
| 9 |
- transformers
|
adapter_config.json
CHANGED
|
@@ -3,11 +3,11 @@
|
|
| 3 |
"alpha_pattern": {},
|
| 4 |
"arrow_config": null,
|
| 5 |
"auto_mapping": {
|
| 6 |
-
"base_model_class": "
|
| 7 |
-
"parent_library": "transformers.models.
|
| 8 |
"unsloth_fixed": true
|
| 9 |
},
|
| 10 |
-
"base_model_name_or_path": "
|
| 11 |
"bias": "none",
|
| 12 |
"corda_config": null,
|
| 13 |
"ensure_weight_tying": false,
|
|
@@ -33,13 +33,13 @@
|
|
| 33 |
"rank_pattern": {},
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
| 36 |
-
"up_proj",
|
| 37 |
-
"down_proj",
|
| 38 |
-
"k_proj",
|
| 39 |
"q_proj",
|
|
|
|
| 40 |
"o_proj",
|
| 41 |
-
"
|
| 42 |
-
"
|
|
|
|
|
|
|
| 43 |
],
|
| 44 |
"target_parameters": null,
|
| 45 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 3 |
"alpha_pattern": {},
|
| 4 |
"arrow_config": null,
|
| 5 |
"auto_mapping": {
|
| 6 |
+
"base_model_class": "Qwen2ForCausalLM",
|
| 7 |
+
"parent_library": "transformers.models.qwen2.modeling_qwen2",
|
| 8 |
"unsloth_fixed": true
|
| 9 |
},
|
| 10 |
+
"base_model_name_or_path": "unsloth/Qwen2.5-0.5B",
|
| 11 |
"bias": "none",
|
| 12 |
"corda_config": null,
|
| 13 |
"ensure_weight_tying": false,
|
|
|
|
| 33 |
"rank_pattern": {},
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
|
|
|
|
|
|
|
|
|
| 36 |
"q_proj",
|
| 37 |
+
"gate_proj",
|
| 38 |
"o_proj",
|
| 39 |
+
"k_proj",
|
| 40 |
+
"up_proj",
|
| 41 |
+
"down_proj",
|
| 42 |
+
"v_proj"
|
| 43 |
],
|
| 44 |
"target_parameters": null,
|
| 45 |
"task_type": "CAUSAL_LM",
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f8255b23bcf414434588b5b5cc0c23e265e63172a7c31ebdbf5216e28437b7f5
|
| 3 |
+
size 70430032
|
added_tokens.json
CHANGED
|
@@ -1,11 +1,7 @@
|
|
| 1 |
{
|
| 2 |
-
"</think>": 151668,
|
| 3 |
"</tool_call>": 151658,
|
| 4 |
-
"</tool_response>": 151666,
|
| 5 |
-
"<think>": 151667,
|
| 6 |
"<tool_call>": 151657,
|
| 7 |
-
"<
|
| 8 |
-
"<|PAD_TOKEN|>": 151669,
|
| 9 |
"<|box_end|>": 151649,
|
| 10 |
"<|box_start|>": 151648,
|
| 11 |
"<|endoftext|>": 151643,
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"</tool_call>": 151658,
|
|
|
|
|
|
|
| 3 |
"<tool_call>": 151657,
|
| 4 |
+
"<|PAD_TOKEN|>": 151665,
|
|
|
|
| 5 |
"<|box_end|>": 151649,
|
| 6 |
"<|box_start|>": 151648,
|
| 7 |
"<|endoftext|>": 151643,
|
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a11add1ccce473bcd467355ba4e231ba727eee54501528658b0d6fa18112957e
|
| 3 |
+
size 11422253
|
tokenizer_config.json
CHANGED
|
@@ -179,38 +179,6 @@
|
|
| 179 |
"special": false
|
| 180 |
},
|
| 181 |
"151665": {
|
| 182 |
-
"content": "<tool_response>",
|
| 183 |
-
"lstrip": false,
|
| 184 |
-
"normalized": false,
|
| 185 |
-
"rstrip": false,
|
| 186 |
-
"single_word": false,
|
| 187 |
-
"special": false
|
| 188 |
-
},
|
| 189 |
-
"151666": {
|
| 190 |
-
"content": "</tool_response>",
|
| 191 |
-
"lstrip": false,
|
| 192 |
-
"normalized": false,
|
| 193 |
-
"rstrip": false,
|
| 194 |
-
"single_word": false,
|
| 195 |
-
"special": false
|
| 196 |
-
},
|
| 197 |
-
"151667": {
|
| 198 |
-
"content": "<think>",
|
| 199 |
-
"lstrip": false,
|
| 200 |
-
"normalized": false,
|
| 201 |
-
"rstrip": false,
|
| 202 |
-
"single_word": false,
|
| 203 |
-
"special": false
|
| 204 |
-
},
|
| 205 |
-
"151668": {
|
| 206 |
-
"content": "</think>",
|
| 207 |
-
"lstrip": false,
|
| 208 |
-
"normalized": false,
|
| 209 |
-
"rstrip": false,
|
| 210 |
-
"single_word": false,
|
| 211 |
-
"special": false
|
| 212 |
-
},
|
| 213 |
-
"151669": {
|
| 214 |
"content": "<|PAD_TOKEN|>",
|
| 215 |
"lstrip": false,
|
| 216 |
"normalized": false,
|
|
|
|
| 179 |
"special": false
|
| 180 |
},
|
| 181 |
"151665": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 182 |
"content": "<|PAD_TOKEN|>",
|
| 183 |
"lstrip": false,
|
| 184 |
"normalized": false,
|