Text Generation
Transformers
Safetensors
English
qwen2
code
coding-agent
tool-use
sft
rlvr
grpo
trl
security
conversational
text-generation-inference
Run this model with HF Jobs
Run SamJoshua/stacy on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/SamJoshua/stacy. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/SamJoshua/stacy on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/SamJoshua/stacy. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/SamJoshua/stacy. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use SamJoshua/stacy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SamJoshua/stacy with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SamJoshua/stacy") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SamJoshua/stacy") model = AutoModelForCausalLM.from_pretrained("SamJoshua/stacy", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SamJoshua/stacy with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SamJoshua/stacy" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SamJoshua/stacy", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SamJoshua/stacy
- SGLang
How to use SamJoshua/stacy 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 "SamJoshua/stacy" \ --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": "SamJoshua/stacy", "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 "SamJoshua/stacy" \ --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": "SamJoshua/stacy", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SamJoshua/stacy with Docker Model Runner:
docker model run hf.co/SamJoshua/stacy
Download eval/grpo_nothink.json from SamJoshua/stacy: direct link, hf CLI and curl.
- Browser
- Download file 12.9 kB
-
https://huggingface.co/SamJoshua/stacy/resolve/main/eval/grpo_nothink.json
- Command line
-
hf download hf://SamJoshua/stacy/eval/grpo_nothink.json
-
curl -L -o grpo_nothink.json https://huggingface.co/SamJoshua/stacy/resolve/main/eval/grpo_nothink.json
12.9 kB
| { | |
| "name": "grpo_nothink", | |
| "model": "/models/ckpts/grpo_nothink/final", | |
| "meta": { | |
| "timestamp": "2026-11-03T15:15:29+0530", | |
| "git_sha": "a7efba4d46c45540ad56d5d9f3d5d98bceeb8c37", | |
| "python": "3.13.14", | |
| "platform": "Linux-7.0.0-38-generic-x86_64-with-glibc2.39", | |
| "argv": [ | |
| "scripts/enterprise/eval.py", | |
| "--model", | |
| "/models/ckpts/grpo_nothink/final", | |
| "--name", | |
| "grpo_nothink", | |
| "--tasks", | |
| "triage", | |
| "--merge", | |
| "--gpu_mem", | |
| "0.4", | |
| "--max_model_len", | |
| "6144" | |
| ], | |
| "torch": "2.13.0+cu130", | |
| "gpu": "NVIDIA RTX PRO 6000 Blackwell Workstation Edition", | |
| "transformers": "5.19.0", | |
| "tasks": [ | |
| "triage" | |
| ], | |
| "gpu_mem": 0.4, | |
| "detok": "vllm", | |
| "merged_tasks": { | |
| "previous_meta": { | |
| "timestamp": "2026-10-29T16:26:43+0530", | |
| "git_sha": "258913509bb329106df82e90ba5a2cf9ad86f8e2", | |
| "python": "3.13.14", | |
| "platform": "Linux-7.0.0-38-generic-x86_64-with-glibc2.39", | |
| "argv": [ | |
| "scripts/enterprise/eval.py", | |
| "--model", | |
| "/models/ckpts/grpo_nothink/final", | |
| "--name", | |
| "grpo_nothink", | |
| "--tasks", | |
| "cti,secure_review", | |
| "--merge", | |
| "--gpu_mem", | |
| "0.3" | |
| ], | |
| "torch": "2.13.0+cu130", | |
| "gpu": "NVIDIA RTX PRO 6000 Blackwell Workstation Edition", | |
| "transformers": "5.19.0", | |
| "tasks": [ | |
| "cti", | |
| "secure_review" | |
| ], | |
| "gpu_mem": 0.3, | |
| "detok": "vllm", | |
| "merged_tasks": { | |
| "previous_meta": { | |
| "timestamp": "2026-10-29T08:16:18+0530", | |
| "git_sha": "98f808c4ea9c4e83e16050358e80288642d0cd80", | |
| "python": "3.13.14", | |
| "platform": "Linux-7.0.0-38-generic-x86_64-with-glibc2.39", | |
| "argv": [ | |
| "scripts/enterprise/eval.py", | |
| "--model", | |
| "/models/ckpts/grpo_nothink/final", | |
| "--name", | |
| "grpo_nothink", | |
| "--gpu_mem", | |
| "0.6", | |
| "--max_model_len", | |
| "6144" | |
| ], | |
| "torch": "2.13.0+cu130", | |
| "gpu": "NVIDIA RTX PRO 6000 Blackwell Workstation Edition", | |
| "transformers": "5.19.0", | |
| "tasks": [ | |
| "humaneval", | |
| "mbpp", | |
| "cti", | |
| "secure_review", | |
| "security_patch" | |
| ], | |
| "gpu_mem": 0.6 | |
| }, | |
| "rerun": [ | |
| "cti", | |
| "secure_review" | |
| ] | |
| } | |
| }, | |
| "rerun": [ | |
| "triage" | |
| ] | |
| } | |
| }, | |
| "results": { | |
| "humaneval": { | |
| "dataset": "humaneval", | |
| "n_problems": 164, | |
| "max_new_tokens": 768, | |
| "greedy": true, | |
| "modes": { | |
| "completion": { | |
| "elapsed_s": 3.0425314903259277, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/fe585eb4df8c88d844eeb463ea4d0302.pkl\nReading samples...\nhumaneval (base tests)\npass@1:\t0.494\nhumaneval+ (base + extra tests)\npass@1:\t0.421\n", | |
| "stderr_tail": "\n0it [00:00, ?it/s]\n1it [00:00, 4.28it/s]\n164it [00:00, 689.84it/s]\n\n 0%| | 0/164 [00:00<?, ?it/s]\n 3%|\u258e | 5/164 [00:00<00:03, 49.98it/s]\n 10%|\u2589 | 16/164 [00:00<00:02, 68.32it/s]\n 29%|\u2588\u2588\u2589 | 48/164 [00:00<00:00, 169.54it/s]\n 48%|\u2588\u2588\u2588\u2588\u258a | 78/164 [00:00<00:00, 215.67it/s]\n 62%|\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 101/164 [00:00<00:00, 133.44it/s]\n 77%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 126/164 [00:00<00:00, 147.21it/s]\n 97%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b| 159/164 [00:01<00:00, 159.22it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 164/164 [00:01<00:00, 88.22it/s] \n", | |
| "n_tasks": 164, | |
| "pass_at_1_base": 0.49390243902439024, | |
| "pass_at_1_plus": 0.4329268292682927, | |
| "gen_elapsed_s": 5.848730087280273, | |
| "mean_completion_tokens": 56.65853658536585 | |
| }, | |
| "chat": { | |
| "elapsed_s": 8.718441486358643, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/fe585eb4df8c88d844eeb463ea4d0302.pkl\nReading samples...\nhumaneval (base tests)\npass@1:\t0.665\nhumaneval+ (base + extra tests)\npass@1:\t0.585\n", | |
| "stderr_tail": "\n0it [00:00, ?it/s]\n1it [00:00, 5.14it/s]\n164it [00:00, 824.22it/s]\n\n 0%| | 0/164 [00:00<?, ?it/s]\n 3%|\u258e | 5/164 [00:00<00:03, 49.88it/s]\n 10%|\u2589 | 16/164 [00:00<00:02, 68.20it/s]\n 30%|\u2588\u2588\u2589 | 49/164 [00:00<00:00, 170.77it/s]\n 50%|\u2588\u2588\u2588\u2588\u2588 | 82/164 [00:00<00:00, 227.94it/s]\n 65%|\u2588\u2588\u2588\u2588\u2588\u2588\u258d | 106/164 [00:00<00:00, 136.87it/s]\n 76%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c | 125/164 [00:00<00:00, 132.38it/s]\n 91%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 | 149/164 [00:01<00:00, 155.47it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 164/164 [00:07<00:00, 21.71it/s] \n", | |
| "n_tasks": 164, | |
| "pass_at_1_base": 0.6646341463414634, | |
| "pass_at_1_plus": 0.5914634146341463, | |
| "gen_elapsed_s": 12.12516450881958, | |
| "mean_completion_tokens": 376.6646341463415 | |
| } | |
| } | |
| }, | |
| "mbpp": { | |
| "dataset": "mbpp", | |
| "n_problems": 378, | |
| "max_new_tokens": 768, | |
| "greedy": true, | |
| "modes": { | |
| "completion": { | |
| "elapsed_s": 31.89734196662903, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/ee43ecabebf20deef4bb776a405ac5b1.pkl\nReading samples...\nmbpp (base tests)\npass@1:\t0.593\nmbpp+ (base + extra tests)\npass@1:\t0.492\n", | |
| "stderr_tail": " | 149/378 [00:03<00:04, 51.09it/s]\n 47%|\u2588\u2588\u2588\u2588\u258b | 177/378 [00:03<00:02, 69.13it/s]\n 51%|\u2588\u2588\u2588\u2588\u2588 | 193/378 [00:03<00:02, 74.32it/s]\n 55%|\u2588\u2588\u2588\u2588\u2588\u258d | 207/378 [00:03<00:02, 80.14it/s]\n 61%|\u2588\u2588\u2588\u2588\u2588\u2588 | 230/378 [00:03<00:01, 101.28it/s]\n 65%|\u2588\u2588\u2588\u2588\u2588\u2588\u258c | 246/378 [00:03<00:01, 99.62it/s] \n 70%|\u2588\u2588\u2588\u2588\u2588\u2588\u2589 | 263/378 [00:03<00:01, 111.82it/s]\n 74%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258e | 278/378 [00:04<00:00, 118.41it/s]\n 78%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258a | 293/378 [00:04<00:00, 122.10it/s]\n 83%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258e | 314/378 [00:04<00:00, 135.14it/s]\n 87%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 330/378 [00:04<00:00, 135.71it/s]\n 92%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f| 347/378 [00:04<00:00, 136.71it/s]\n 97%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b| 365/378 [00:04<00:00, 133.53it/s]\n 97%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b| 365/378 [00:19<00:00, 133.53it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:27<00:00, 2.34it/s] \n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:27<00:00, 13.79it/s]\n", | |
| "n_tasks": 378, | |
| "pass_at_1_base": 0.5925925925925926, | |
| "pass_at_1_plus": 0.4973544973544973, | |
| "gen_elapsed_s": 34.7060432434082, | |
| "mean_completion_tokens": 46.3068783068783 | |
| }, | |
| "chat": { | |
| "elapsed_s": 33.21084213256836, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/ee43ecabebf20deef4bb776a405ac5b1.pkl\nReading samples...\nmbpp (base tests)\npass@1:\t0.749\nmbpp+ (base + extra tests)\npass@1:\t0.638\n", | |
| "stderr_tail": " | 171/378 [00:03<00:03, 65.05it/s]\n 49%|\u2588\u2588\u2588\u2588\u2589 | 185/378 [00:03<00:02, 73.87it/s]\n 52%|\u2588\u2588\u2588\u2588\u2588\u258f | 198/378 [00:03<00:02, 81.63it/s]\n 58%|\u2588\u2588\u2588\u2588\u2588\u258a | 219/378 [00:03<00:01, 103.67it/s]\n 62%|\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 234/378 [00:03<00:01, 102.64it/s]\n 66%|\u2588\u2588\u2588\u2588\u2588\u2588\u258c | 250/378 [00:04<00:01, 109.39it/s]\n 71%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588 | 268/378 [00:04<00:00, 123.92it/s]\n 75%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258d | 283/378 [00:04<00:00, 125.46it/s]\n 80%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 | 304/378 [00:04<00:00, 139.06it/s]\n 85%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258d | 320/378 [00:04<00:00, 127.53it/s]\n 89%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2589 | 337/378 [00:04<00:00, 137.42it/s]\n 93%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258e| 353/378 [00:04<00:00, 133.33it/s]\n 99%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258a| 373/378 [00:05<00:00, 68.59it/s] \n 99%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258a| 373/378 [00:19<00:00, 68.59it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:28<00:00, 1.93it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:28<00:00, 13.08it/s]\n", | |
| "n_tasks": 378, | |
| "pass_at_1_base": 0.7486772486772487, | |
| "pass_at_1_plus": 0.6455026455026455, | |
| "gen_elapsed_s": 37.02275252342224, | |
| "mean_completion_tokens": 275.4232804232804 | |
| } | |
| } | |
| }, | |
| "cti": { | |
| "n": 400, | |
| "max_new_tokens": 3072, | |
| "greedy": true, | |
| "by_type": { | |
| "mcq": { | |
| "n": 140, | |
| "accuracy": 0.6571428571428571, | |
| "lenient_accuracy": 0.6571428571428571, | |
| "partial": 0.6571428571428571, | |
| "well_formed_frac": 0.9928571428571429 | |
| }, | |
| "cwe": { | |
| "n": 200, | |
| "accuracy": 0.67, | |
| "lenient_accuracy": 0.69, | |
| "partial": 0.68, | |
| "well_formed_frac": 0.97 | |
| }, | |
| "cvss": { | |
| "n": 60, | |
| "accuracy": 0.55, | |
| "lenient_accuracy": 0.55, | |
| "partial": 0.85, | |
| "well_formed_frac": 0.9666666666666667 | |
| } | |
| }, | |
| "scoring": "accuracy = strict last-line match; lenient_accuracy also counts a gold answer stated near the end but not on the last line", | |
| "accuracy": 0.6475, | |
| "lenient_accuracy": 0.6575, | |
| "mean_tokens": 105.67, | |
| "truncated_frac": 0.0 | |
| }, | |
| "secure_review": { | |
| "n": 300, | |
| "max_new_tokens": 1536, | |
| "greedy": true, | |
| "by_type": { | |
| "mcq": { | |
| "n": 300, | |
| "accuracy": 0.04, | |
| "lenient_accuracy": 0.6766666666666666, | |
| "partial": 0.35833333333333334, | |
| "well_formed_frac": 0.05 | |
| } | |
| }, | |
| "scoring": "accuracy = strict last-line match; lenient_accuracy also counts a gold answer stated near the end but not on the last line", | |
| "accuracy": 0.04, | |
| "lenient_accuracy": 0.6766666666666666, | |
| "mean_tokens": 110.14666666666666, | |
| "truncated_frac": 0.0 | |
| }, | |
| "security_patch": { | |
| "n_tasks": 4, | |
| "samples_per_task": 4, | |
| "temperature": 0.6, | |
| "max_new_tokens": 1536, | |
| "tasks": { | |
| "sec_zip_slip": { | |
| "mean_correctness": 0.0, | |
| "solved_any": false, | |
| "mean_regression": 1.0, | |
| "mean_security": 0.0, | |
| "cwe_named_frac": 0.0 | |
| }, | |
| "sec_ssrf_validator": { | |
| "mean_correctness": 0.5, | |
| "solved_any": false, | |
| "mean_regression": 1.0, | |
| "mean_security": 0.5, | |
| "cwe_named_frac": 0.0 | |
| }, | |
| "sec_auth_none_compare": { | |
| "mean_correctness": 0.5, | |
| "solved_any": false, | |
| "mean_regression": 1.0, | |
| "mean_security": 0.5, | |
| "cwe_named_frac": 0.0 | |
| }, | |
| "sec_unsafe_reflection": { | |
| "mean_correctness": 0.0, | |
| "solved_any": false, | |
| "mean_regression": 1.0, | |
| "mean_security": 0.0, | |
| "cwe_named_frac": 0.0 | |
| } | |
| }, | |
| "mean_correctness": 0.25, | |
| "pass_rate": 0.0, | |
| "tasks_solved_any": 0, | |
| "cwe_named_frac": 0.0 | |
| }, | |
| "triage": { | |
| "n": 14, | |
| "max_new_tokens": 1536, | |
| "greedy": true, | |
| "by_type": { | |
| "label": { | |
| "n": 14, | |
| "accuracy": 0.0, | |
| "lenient_accuracy": 0.5, | |
| "partial": 0.25, | |
| "well_formed_frac": 0.0 | |
| } | |
| }, | |
| "scoring": "accuracy = strict last-line match; lenient_accuracy also counts a gold answer stated near the end but not on the last line", | |
| "accuracy": 0.0, | |
| "lenient_accuracy": 0.5, | |
| "mean_tokens": 110.64285714285714, | |
| "truncated_frac": 0.0 | |
| } | |
| }, | |
| "elapsed_s": 19.964335918426514 | |
| } |