Instructions to use Arittro2/grpo-checkpoints with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Arittro2/grpo-checkpoints with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/gemma-3-4b-it") model = PeftModel.from_pretrained(base_model, "Arittro2/grpo-checkpoints") - Transformers
How to use Arittro2/grpo-checkpoints with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Arittro2/grpo-checkpoints") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Arittro2/grpo-checkpoints", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Arittro2/grpo-checkpoints with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Arittro2/grpo-checkpoints" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Arittro2/grpo-checkpoints", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Arittro2/grpo-checkpoints
- SGLang
How to use Arittro2/grpo-checkpoints 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 "Arittro2/grpo-checkpoints" \ --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": "Arittro2/grpo-checkpoints", "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 "Arittro2/grpo-checkpoints" \ --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": "Arittro2/grpo-checkpoints", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use Arittro2/grpo-checkpoints with Docker Model Runner:
docker model run hf.co/Arittro2/grpo-checkpoints
Upload folder using huggingface_hub
Browse files- README.md +1 -1
- adapter_config.json +4 -9
- adapter_model.safetensors +1 -1
- optimizer.pt +2 -2
- rng_state.pth +1 -1
- scheduler.pt +1 -1
- trainer_state.json +0 -0
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -207,4 +207,4 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
|
|
| 207 |
[More Information Needed]
|
| 208 |
### Framework versions
|
| 209 |
|
| 210 |
-
- PEFT 0.
|
|
|
|
| 207 |
[More Information Needed]
|
| 208 |
### Framework versions
|
| 209 |
|
| 210 |
+
- PEFT 0.16.0
|
adapter_config.json
CHANGED
|
@@ -1,7 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"alora_invocation_tokens": null,
|
| 3 |
"alpha_pattern": {},
|
| 4 |
-
"arrow_config": null,
|
| 5 |
"auto_mapping": {
|
| 6 |
"base_model_class": "Gemma3ForConditionalGeneration",
|
| 7 |
"parent_library": "transformers.models.gemma3.modeling_gemma3",
|
|
@@ -10,7 +8,6 @@
|
|
| 10 |
"base_model_name_or_path": "unsloth/gemma-3-4b-it",
|
| 11 |
"bias": "none",
|
| 12 |
"corda_config": null,
|
| 13 |
-
"ensure_weight_tying": false,
|
| 14 |
"eva_config": null,
|
| 15 |
"exclude_modules": null,
|
| 16 |
"fan_in_fan_out": false,
|
|
@@ -27,21 +24,19 @@
|
|
| 27 |
"megatron_core": "megatron.core",
|
| 28 |
"modules_to_save": null,
|
| 29 |
"peft_type": "LORA",
|
| 30 |
-
"peft_version": "0.18.0",
|
| 31 |
"qalora_group_size": 16,
|
| 32 |
"r": 32,
|
| 33 |
"rank_pattern": {},
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
| 36 |
-
"
|
| 37 |
"v_proj",
|
| 38 |
-
"
|
| 39 |
"k_proj",
|
| 40 |
-
"o_proj",
|
| 41 |
"up_proj",
|
| 42 |
-
"
|
|
|
|
| 43 |
],
|
| 44 |
-
"target_parameters": null,
|
| 45 |
"task_type": "CAUSAL_LM",
|
| 46 |
"trainable_token_indices": null,
|
| 47 |
"use_dora": false,
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"alpha_pattern": {},
|
|
|
|
| 3 |
"auto_mapping": {
|
| 4 |
"base_model_class": "Gemma3ForConditionalGeneration",
|
| 5 |
"parent_library": "transformers.models.gemma3.modeling_gemma3",
|
|
|
|
| 8 |
"base_model_name_or_path": "unsloth/gemma-3-4b-it",
|
| 9 |
"bias": "none",
|
| 10 |
"corda_config": null,
|
|
|
|
| 11 |
"eva_config": null,
|
| 12 |
"exclude_modules": null,
|
| 13 |
"fan_in_fan_out": false,
|
|
|
|
| 24 |
"megatron_core": "megatron.core",
|
| 25 |
"modules_to_save": null,
|
| 26 |
"peft_type": "LORA",
|
|
|
|
| 27 |
"qalora_group_size": 16,
|
| 28 |
"r": 32,
|
| 29 |
"rank_pattern": {},
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
| 32 |
+
"q_proj",
|
| 33 |
"v_proj",
|
| 34 |
+
"down_proj",
|
| 35 |
"k_proj",
|
|
|
|
| 36 |
"up_proj",
|
| 37 |
+
"o_proj",
|
| 38 |
+
"gate_proj"
|
| 39 |
],
|
|
|
|
| 40 |
"task_type": "CAUSAL_LM",
|
| 41 |
"trainable_token_indices": null,
|
| 42 |
"use_dora": false,
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 262406656
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4b8863a08a9e03e1385b1d8e43d6ceb78d559e59c3fd560051dd6c4ffea5ef01
|
| 3 |
size 262406656
|
optimizer.pt
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:3fd8fb0b9919222682bea835ce2ae0481fc1b0de959a33d4abb353b639eca7b1
|
| 3 |
+
size 121633045
|
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:a7f558d8446482efa60b14ceb530782da57f6ab2cf1d67c09fd1e5605f003a25
|
| 3 |
size 14645
|
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:427c0c946dd9504d04f599e31438298f1906271364d5cb9e0d7a9a8880940c29
|
| 3 |
size 1465
|
trainer_state.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 7057
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ddb04574f7b9ade574879398471f2f78cd542b3e6ae301dc53991b01c8eb01df
|
| 3 |
size 7057
|