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.json from SamJoshua/stacy: direct link, hf CLI and curl.
- Browser
- Download file 12.3 kB
-
https://huggingface.co/SamJoshua/stacy/resolve/main/eval/grpo.json
- Command line
-
hf download hf://SamJoshua/stacy/eval/grpo.json
-
curl -L -o grpo.json https://huggingface.co/SamJoshua/stacy/resolve/main/eval/grpo.json
12.3 kB
| { | |
| "name": "grpo", | |
| "model": "/models/ckpts/grpo/final", | |
| "meta": { | |
| "timestamp": "2026-10-29T16:31:50+0530", | |
| "git_sha": "cf708427214dfdfa925ae267510a646af0f8475c", | |
| "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/final", | |
| "--name", | |
| "grpo", | |
| "--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-29T07:20:20+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/final", | |
| "--name", | |
| "grpo", | |
| "--tasks", | |
| "cti,secure_review", | |
| "--merge", | |
| "--gpu_mem", | |
| "0.12", | |
| "--max_model_len", | |
| "6144" | |
| ], | |
| "torch": "2.13.0+cu130", | |
| "gpu": "NVIDIA RTX PRO 6000 Blackwell Workstation Edition", | |
| "transformers": "5.19.0", | |
| "tasks": [ | |
| "cti", | |
| "secure_review" | |
| ], | |
| "gpu_mem": 0.12, | |
| "merged_tasks": { | |
| "previous_meta": { | |
| "timestamp": "2026-10-29T07:08:05+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/final", | |
| "--name", | |
| "grpo", | |
| "--gpu_mem", | |
| "0.6" | |
| ], | |
| "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": [ | |
| "cti", | |
| "secure_review" | |
| ] | |
| } | |
| }, | |
| "results": { | |
| "humaneval": { | |
| "dataset": "humaneval", | |
| "n_problems": 164, | |
| "max_new_tokens": 768, | |
| "greedy": true, | |
| "modes": { | |
| "completion": { | |
| "elapsed_s": 3.0348358154296875, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/fe585eb4df8c88d844eeb463ea4d0302.pkl\nReading samples...\nhumaneval (base tests)\npass@1:\t0.518\nhumaneval+ (base + extra tests)\npass@1:\t0.445\n", | |
| "stderr_tail": "\n0it [00:00, ?it/s]\n1it [00:00, 4.38it/s]\n164it [00:00, 707.50it/s]\n\n 0%| | 0/164 [00:00<?, ?it/s]\n 5%|\u258c | 9/164 [00:00<00:01, 89.60it/s]\n 11%|\u2588 | 18/164 [00:00<00:02, 70.06it/s]\n 32%|\u2588\u2588\u2588\u258f | 52/164 [00:00<00:00, 176.21it/s]\n 50%|\u2588\u2588\u2588\u2588\u2588 | 82/164 [00:00<00:00, 219.33it/s]\n 65%|\u2588\u2588\u2588\u2588\u2588\u2588\u258d | 106/164 [00:00<00:00, 140.29it/s]\n 76%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c | 125/164 [00:00<00:00, 145.09it/s]\n 92%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f| 151/164 [00:00<00:00, 169.30it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 164/164 [00:01<00:00, 89.43it/s] \n", | |
| "n_tasks": 164, | |
| "pass_at_1_base": 0.5182926829268293, | |
| "pass_at_1_plus": 0.45121951219512196, | |
| "gen_elapsed_s": 5.879366636276245, | |
| "mean_completion_tokens": 51.76829268292683 | |
| }, | |
| "chat": { | |
| "elapsed_s": 8.96526312828064, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/fe585eb4df8c88d844eeb463ea4d0302.pkl\nReading samples...\nhumaneval (base tests)\npass@1:\t0.652\nhumaneval+ (base + extra tests)\npass@1:\t0.579\n", | |
| "stderr_tail": "\n0it [00:00, ?it/s]\n1it [00:00, 4.61it/s]\n164it [00:00, 741.21it/s]\n\n 0%| | 0/164 [00:00<?, ?it/s]\n 7%|\u258b | 11/164 [00:00<00:01, 108.12it/s]\n 13%|\u2588\u258e | 22/164 [00:00<00:01, 82.22it/s] \n 29%|\u2588\u2588\u258a | 47/164 [00:00<00:00, 145.51it/s]\n 46%|\u2588\u2588\u2588\u2588\u258b | 76/164 [00:00<00:00, 196.37it/s]\n 60%|\u2588\u2588\u2588\u2588\u2588\u2589 | 98/164 [00:00<00:00, 122.92it/s]\n 76%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c | 124/164 [00:00<00:00, 140.33it/s]\n 91%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 | 149/164 [00:01<00:00, 164.85it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 164/164 [00:07<00:00, 21.09it/s] \n", | |
| "n_tasks": 164, | |
| "pass_at_1_base": 0.6524390243902439, | |
| "pass_at_1_plus": 0.5853658536585366, | |
| "gen_elapsed_s": 12.084577083587646, | |
| "mean_completion_tokens": 219.5609756097561 | |
| } | |
| } | |
| }, | |
| "mbpp": { | |
| "dataset": "mbpp", | |
| "n_problems": 378, | |
| "max_new_tokens": 768, | |
| "greedy": true, | |
| "modes": { | |
| "completion": { | |
| "elapsed_s": 32.795098543167114, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/ee43ecabebf20deef4bb776a405ac5b1.pkl\nReading samples...\nmbpp (base tests)\npass@1:\t0.598\nmbpp+ (base + extra tests)\npass@1:\t0.497\n", | |
| "stderr_tail": " | 148/378 [00:03<00:04, 52.55it/s]\n 43%|\u2588\u2588\u2588\u2588\u258e | 163/378 [00:03<00:03, 58.11it/s]\n 47%|\u2588\u2588\u2588\u2588\u258b | 177/378 [00:03<00:03, 66.25it/s]\n 51%|\u2588\u2588\u2588\u2588\u2588 | 191/378 [00:03<00:02, 75.39it/s]\n 55%|\u2588\u2588\u2588\u2588\u2588\u258d | 207/378 [00:03<00:02, 84.90it/s]\n 62%|\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 234/378 [00:03<00:01, 110.19it/s]\n 66%|\u2588\u2588\u2588\u2588\u2588\u2588\u258c | 250/378 [00:03<00:01, 95.96it/s] \n 71%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 270/378 [00:04<00:00, 114.29it/s]\n 77%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 291/378 [00:04<00:00, 128.98it/s]\n 82%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 311/378 [00:04<00:00, 144.09it/s]\n 87%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 328/378 [00:04<00:00, 125.32it/s]\n 92%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f| 346/378 [00:04<00:00, 135.28it/s]\n 97%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b| 365/378 [00:04<00:00, 144.04it/s]\n 97%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b| 365/378 [00:19<00:00, 144.04it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:28<00:00, 2.34it/s] \n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:28<00:00, 13.18it/s]\n", | |
| "n_tasks": 378, | |
| "pass_at_1_base": 0.5978835978835979, | |
| "pass_at_1_plus": 0.5, | |
| "gen_elapsed_s": 35.63167214393616, | |
| "mean_completion_tokens": 43.48412698412698 | |
| }, | |
| "chat": { | |
| "elapsed_s": 33.390408754348755, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/ee43ecabebf20deef4bb776a405ac5b1.pkl\nReading samples...\nmbpp (base tests)\npass@1:\t0.743\nmbpp+ (base + extra tests)\npass@1:\t0.635\n", | |
| "stderr_tail": " | 145/378 [00:03<00:04, 48.15it/s]\n 44%|\u2588\u2588\u2588\u2588\u258d | 167/378 [00:03<00:03, 65.20it/s]\n 48%|\u2588\u2588\u2588\u2588\u258a | 181/378 [00:03<00:02, 69.30it/s]\n 53%|\u2588\u2588\u2588\u2588\u2588\u258e | 199/378 [00:03<00:02, 81.59it/s]\n 59%|\u2588\u2588\u2588\u2588\u2588\u2589 | 224/378 [00:03<00:01, 106.72it/s]\n 63%|\u2588\u2588\u2588\u2588\u2588\u2588\u258e | 240/378 [00:03<00:01, 104.66it/s]\n 67%|\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 254/378 [00:03<00:01, 104.42it/s]\n 75%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258d | 283/378 [00:04<00:00, 135.65it/s]\n 79%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2589 | 299/378 [00:04<00:00, 131.74it/s]\n 84%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258e | 316/378 [00:04<00:00, 137.05it/s]\n 88%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258a | 332/378 [00:04<00:00, 140.65it/s]\n 92%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f| 347/378 [00:04<00:00, 137.70it/s]\n 98%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258a| 369/378 [00:04<00:00, 141.73it/s]\n 98%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258a| 369/378 [00:19<00:00, 141.73it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:28<00:00, 2.13it/s] \n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:28<00:00, 13.05it/s]\n", | |
| "n_tasks": 378, | |
| "pass_at_1_base": 0.7433862433862434, | |
| "pass_at_1_plus": 0.6428571428571429, | |
| "gen_elapsed_s": 36.34417200088501, | |
| "mean_completion_tokens": 63.74074074074074 | |
| } | |
| } | |
| }, | |
| "cti": { | |
| "n": 400, | |
| "max_new_tokens": 3072, | |
| "greedy": true, | |
| "by_type": { | |
| "mcq": { | |
| "n": 140, | |
| "accuracy": 0.4357142857142857, | |
| "lenient_accuracy": 0.44285714285714284, | |
| "partial": 0.4392857142857143, | |
| "well_formed_frac": 0.7785714285714286 | |
| }, | |
| "cwe": { | |
| "n": 200, | |
| "accuracy": 0.64, | |
| "lenient_accuracy": 0.685, | |
| "partial": 0.6625, | |
| "well_formed_frac": 0.835 | |
| }, | |
| "cvss": { | |
| "n": 60, | |
| "accuracy": 0.35, | |
| "lenient_accuracy": 0.35, | |
| "partial": 0.575, | |
| "well_formed_frac": 0.65 | |
| } | |
| }, | |
| "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.525, | |
| "lenient_accuracy": 0.55, | |
| "mean_tokens": 992.355, | |
| "truncated_frac": 0.2075 | |
| }, | |
| "secure_review": { | |
| "n": 300, | |
| "max_new_tokens": 1536, | |
| "greedy": true, | |
| "by_type": { | |
| "mcq": { | |
| "n": 300, | |
| "accuracy": 0.0, | |
| "lenient_accuracy": 0.5966666666666667, | |
| "partial": 0.29833333333333334, | |
| "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.5966666666666667, | |
| "mean_tokens": 122.50333333333333, | |
| "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": 0.0, | |
| "mean_security": 1.0, | |
| "cwe_named_frac": 0.0 | |
| }, | |
| "sec_ssrf_validator": { | |
| "mean_correctness": 0.16666666666666666, | |
| "solved_any": false, | |
| "mean_regression": 1.0, | |
| "mean_security": 0.16666666666666666, | |
| "cwe_named_frac": 0.0 | |
| }, | |
| "sec_auth_none_compare": { | |
| "mean_correctness": 1.0, | |
| "solved_any": true, | |
| "mean_regression": 1.0, | |
| "mean_security": 1.0, | |
| "cwe_named_frac": 0.0 | |
| }, | |
| "sec_unsafe_reflection": { | |
| "mean_correctness": 0.0, | |
| "solved_any": false, | |
| "mean_regression": 0.0, | |
| "mean_security": 0.0, | |
| "cwe_named_frac": 0.0 | |
| } | |
| }, | |
| "mean_correctness": 0.2916666666666667, | |
| "pass_rate": 0.25, | |
| "tasks_solved_any": 1, | |
| "cwe_named_frac": 0.0 | |
| } | |
| }, | |
| "elapsed_s": 45.74814581871033 | |
| } |