Instructions to use RapidOrc121/ir-attacker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use RapidOrc121/ir-attacker with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/qwen2.5-0.5b-instruct-unsloth-bnb-4bit") model = PeftModel.from_pretrained(base_model, "RapidOrc121/ir-attacker") - Transformers
How to use RapidOrc121/ir-attacker with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RapidOrc121/ir-attacker") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("RapidOrc121/ir-attacker", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use RapidOrc121/ir-attacker with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RapidOrc121/ir-attacker" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RapidOrc121/ir-attacker", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/RapidOrc121/ir-attacker
- SGLang
How to use RapidOrc121/ir-attacker 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 "RapidOrc121/ir-attacker" \ --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": "RapidOrc121/ir-attacker", "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 "RapidOrc121/ir-attacker" \ --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": "RapidOrc121/ir-attacker", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio new
How to use RapidOrc121/ir-attacker 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 RapidOrc121/ir-attacker 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 RapidOrc121/ir-attacker to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for RapidOrc121/ir-attacker to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="RapidOrc121/ir-attacker", max_seq_length=2048, ) - Docker Model Runner
How to use RapidOrc121/ir-attacker with Docker Model Runner:
docker model run hf.co/RapidOrc121/ir-attacker
Upload attacker GRPO checkpoint
Browse files- adapter_config.json +4 -4
- adapter_model.safetensors +1 -1
- checkpoint-500/adapter_config.json +4 -4
- checkpoint-500/adapter_model.safetensors +1 -1
- checkpoint-500/optimizer.pt +1 -1
- checkpoint-500/rng_state.pth +1 -1
- checkpoint-500/scaler.pt +1 -1
- checkpoint-500/scheduler.pt +1 -1
- checkpoint-500/trainer_state.json +0 -0
- checkpoint-500/training_args.bin +1 -1
- training_args.bin +1 -1
adapter_config.json
CHANGED
|
@@ -34,13 +34,13 @@
|
|
| 34 |
"rank_pattern": {},
|
| 35 |
"revision": null,
|
| 36 |
"target_modules": [
|
|
|
|
| 37 |
"v_proj",
|
| 38 |
-
"gate_proj",
|
| 39 |
-
"down_proj",
|
| 40 |
"k_proj",
|
| 41 |
"o_proj",
|
| 42 |
-
"
|
| 43 |
-
"
|
|
|
|
| 44 |
],
|
| 45 |
"target_parameters": null,
|
| 46 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 34 |
"rank_pattern": {},
|
| 35 |
"revision": null,
|
| 36 |
"target_modules": [
|
| 37 |
+
"up_proj",
|
| 38 |
"v_proj",
|
|
|
|
|
|
|
| 39 |
"k_proj",
|
| 40 |
"o_proj",
|
| 41 |
+
"gate_proj",
|
| 42 |
+
"down_proj",
|
| 43 |
+
"q_proj"
|
| 44 |
],
|
| 45 |
"target_parameters": null,
|
| 46 |
"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 35237104
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3a3e6bdf85952038b28971f4760854ba0d604e4aa1941057caa153dd4e6866ad
|
| 3 |
size 35237104
|
checkpoint-500/adapter_config.json
CHANGED
|
@@ -34,13 +34,13 @@
|
|
| 34 |
"rank_pattern": {},
|
| 35 |
"revision": null,
|
| 36 |
"target_modules": [
|
|
|
|
| 37 |
"v_proj",
|
| 38 |
-
"gate_proj",
|
| 39 |
-
"down_proj",
|
| 40 |
"k_proj",
|
| 41 |
"o_proj",
|
| 42 |
-
"
|
| 43 |
-
"
|
|
|
|
| 44 |
],
|
| 45 |
"target_parameters": null,
|
| 46 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 34 |
"rank_pattern": {},
|
| 35 |
"revision": null,
|
| 36 |
"target_modules": [
|
| 37 |
+
"up_proj",
|
| 38 |
"v_proj",
|
|
|
|
|
|
|
| 39 |
"k_proj",
|
| 40 |
"o_proj",
|
| 41 |
+
"gate_proj",
|
| 42 |
+
"down_proj",
|
| 43 |
+
"q_proj"
|
| 44 |
],
|
| 45 |
"target_parameters": null,
|
| 46 |
"task_type": "CAUSAL_LM",
|
checkpoint-500/adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 35237104
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3a3e6bdf85952038b28971f4760854ba0d604e4aa1941057caa153dd4e6866ad
|
| 3 |
size 35237104
|
checkpoint-500/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 18814149
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ca856d8f3157021a12072110904328b17142e51508d787fc0c810449e555b7b0
|
| 3 |
size 18814149
|
checkpoint-500/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:06d16337a1cc97f28f76e569349ad771f6b861e38695cd0a04854276e0146ad5
|
| 3 |
size 14645
|
checkpoint-500/scaler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1383
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32cf99c808252ccaa3ad9883e3cea8cc90c8b898643b12e6f12e1ed6fcb8fe0c
|
| 3 |
size 1383
|
checkpoint-500/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:40745af469905f95ffd22925134d94b067bb5eb165d2a6ab387fc4580c5e1353
|
| 3 |
size 1465
|
checkpoint-500/trainer_state.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-500/training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 7185
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0c165afade5519d4ff56cddad2187a76524c5b2fa1e6f661d6efb8680ec3370
|
| 3 |
size 7185
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 7185
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0c165afade5519d4ff56cddad2187a76524c5b2fa1e6f661d6efb8680ec3370
|
| 3 |
size 7185
|