Instructions to use Lomesh7777/salespath-grpo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Lomesh7777/salespath-grpo with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen2.5-1.5B-Instruct") model = PeftModel.from_pretrained(base_model, "Lomesh7777/salespath-grpo") - Transformers
How to use Lomesh7777/salespath-grpo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Lomesh7777/salespath-grpo") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Lomesh7777/salespath-grpo", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Lomesh7777/salespath-grpo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Lomesh7777/salespath-grpo" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Lomesh7777/salespath-grpo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Lomesh7777/salespath-grpo
- SGLang
How to use Lomesh7777/salespath-grpo 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 "Lomesh7777/salespath-grpo" \ --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": "Lomesh7777/salespath-grpo", "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 "Lomesh7777/salespath-grpo" \ --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": "Lomesh7777/salespath-grpo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Lomesh7777/salespath-grpo with Docker Model Runner:
docker model run hf.co/Lomesh7777/salespath-grpo
Upload eval_results.json with huggingface_hub
Browse files- eval_results.json +98 -0
eval_results.json
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base_label": "./sft_checkpoint (PEFT on unsloth/Qwen2.5-1.5B-Instruct)",
|
| 3 |
+
"trained_label": "./grpo_checkpoint (PEFT on unsloth/Qwen2.5-1.5B-Instruct)",
|
| 4 |
+
"seed": 1234,
|
| 5 |
+
"episodes_per_level": 4,
|
| 6 |
+
"base": {
|
| 7 |
+
"1": {
|
| 8 |
+
"violations_per_episode": 0.0,
|
| 9 |
+
"ordering_rate": 1.0,
|
| 10 |
+
"close_rate": 1.0,
|
| 11 |
+
"correct_disqual_rate": 0.0,
|
| 12 |
+
"mean_final_reward": 0.3566666666666667,
|
| 13 |
+
"mean_cum_reward": 1.09,
|
| 14 |
+
"mean_turns": 7.0,
|
| 15 |
+
"n_episodes": 4,
|
| 16 |
+
"n_disqual_cases": 0
|
| 17 |
+
},
|
| 18 |
+
"2": {
|
| 19 |
+
"violations_per_episode": 1.0,
|
| 20 |
+
"ordering_rate": 0.8,
|
| 21 |
+
"close_rate": 0.0,
|
| 22 |
+
"correct_disqual_rate": 0.0,
|
| 23 |
+
"mean_final_reward": -0.08000000000000002,
|
| 24 |
+
"mean_cum_reward": 0.5800000000000001,
|
| 25 |
+
"mean_turns": 6.0,
|
| 26 |
+
"n_episodes": 4,
|
| 27 |
+
"n_disqual_cases": 0
|
| 28 |
+
},
|
| 29 |
+
"3": {
|
| 30 |
+
"violations_per_episode": 1.0,
|
| 31 |
+
"ordering_rate": 0.5714285714285714,
|
| 32 |
+
"close_rate": 0.0,
|
| 33 |
+
"correct_disqual_rate": 0.0,
|
| 34 |
+
"mean_final_reward": -0.08000000000000002,
|
| 35 |
+
"mean_cum_reward": 0.5342857142857143,
|
| 36 |
+
"mean_turns": 6.0,
|
| 37 |
+
"n_episodes": 4,
|
| 38 |
+
"n_disqual_cases": 0
|
| 39 |
+
},
|
| 40 |
+
"4": {
|
| 41 |
+
"violations_per_episode": 0.0,
|
| 42 |
+
"ordering_rate": 1.0,
|
| 43 |
+
"close_rate": 0.0,
|
| 44 |
+
"correct_disqual_rate": 1.0,
|
| 45 |
+
"mean_final_reward": 0.2,
|
| 46 |
+
"mean_cum_reward": 0.7,
|
| 47 |
+
"mean_turns": 6.0,
|
| 48 |
+
"n_episodes": 4,
|
| 49 |
+
"n_disqual_cases": 4
|
| 50 |
+
}
|
| 51 |
+
},
|
| 52 |
+
"trained": {
|
| 53 |
+
"1": {
|
| 54 |
+
"violations_per_episode": 0.25,
|
| 55 |
+
"ordering_rate": 0.9166666666666666,
|
| 56 |
+
"close_rate": 0.75,
|
| 57 |
+
"correct_disqual_rate": 0.0,
|
| 58 |
+
"mean_final_reward": 0.245,
|
| 59 |
+
"mean_cum_reward": 0.9783333333333335,
|
| 60 |
+
"mean_turns": 7.0,
|
| 61 |
+
"n_episodes": 4,
|
| 62 |
+
"n_disqual_cases": 0
|
| 63 |
+
},
|
| 64 |
+
"2": {
|
| 65 |
+
"violations_per_episode": 1.0,
|
| 66 |
+
"ordering_rate": 0.8,
|
| 67 |
+
"close_rate": 0.0,
|
| 68 |
+
"correct_disqual_rate": 0.0,
|
| 69 |
+
"mean_final_reward": -0.08000000000000002,
|
| 70 |
+
"mean_cum_reward": 0.63,
|
| 71 |
+
"mean_turns": 6.5,
|
| 72 |
+
"n_episodes": 4,
|
| 73 |
+
"n_disqual_cases": 0
|
| 74 |
+
},
|
| 75 |
+
"3": {
|
| 76 |
+
"violations_per_episode": 1.25,
|
| 77 |
+
"ordering_rate": 0.5714285714285714,
|
| 78 |
+
"close_rate": 0.0,
|
| 79 |
+
"correct_disqual_rate": 0.0,
|
| 80 |
+
"mean_final_reward": -0.08000000000000002,
|
| 81 |
+
"mean_cum_reward": 0.5392857142857143,
|
| 82 |
+
"mean_turns": 6.25,
|
| 83 |
+
"n_episodes": 4,
|
| 84 |
+
"n_disqual_cases": 0
|
| 85 |
+
},
|
| 86 |
+
"4": {
|
| 87 |
+
"violations_per_episode": 0.0,
|
| 88 |
+
"ordering_rate": 1.0,
|
| 89 |
+
"close_rate": 0.0,
|
| 90 |
+
"correct_disqual_rate": 1.0,
|
| 91 |
+
"mean_final_reward": 0.2,
|
| 92 |
+
"mean_cum_reward": 0.7,
|
| 93 |
+
"mean_turns": 6.0,
|
| 94 |
+
"n_episodes": 4,
|
| 95 |
+
"n_disqual_cases": 4
|
| 96 |
+
}
|
| 97 |
+
}
|
| 98 |
+
}
|