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/cmp_qwen2.5-coder-3b-instruct.json from SamJoshua/stacy: direct link, hf CLI and curl.
- Browser
- Download file 10.4 kB
-
https://huggingface.co/SamJoshua/stacy/resolve/main/eval/cmp_qwen2.5-coder-3b-instruct.json
- Command line
-
hf download hf://SamJoshua/stacy/eval/cmp_qwen2.5-coder-3b-instruct.json
-
curl -L -o cmp_qwen2.5-coder-3b-instruct.json https://huggingface.co/SamJoshua/stacy/resolve/main/eval/cmp_qwen2.5-coder-3b-instruct.json
10.4 kB
| { | |
| "name": "cmp_qwen2.5-coder-3b-instruct", | |
| "model": "Qwen/Qwen2.5-Coder-3B-Instruct", | |
| "meta": { | |
| "timestamp": "2026-10-29T09:56:10+0530", | |
| "git_sha": "b8eb8f7a513c9adf81062587fe093ce05619383f", | |
| "python": "3.13.14", | |
| "platform": "Linux-7.0.0-38-generic-x86_64-with-glibc2.39", | |
| "argv": [ | |
| "scripts/enterprise/eval.py", | |
| "--model", | |
| "Qwen/Qwen2.5-Coder-3B-Instruct", | |
| "--name", | |
| "cmp_qwen2.5-coder-3b-instruct", | |
| "--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 | |
| }, | |
| "results": { | |
| "humaneval": { | |
| "dataset": "humaneval", | |
| "n_problems": 164, | |
| "max_new_tokens": 768, | |
| "greedy": true, | |
| "modes": { | |
| "completion": { | |
| "elapsed_s": 2.4986913204193115, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/fe585eb4df8c88d844eeb463ea4d0302.pkl\nReading samples...\nhumaneval (base tests)\npass@1:\t0.750\nhumaneval+ (base + extra tests)\npass@1:\t0.689\n", | |
| "stderr_tail": "\n0it [00:00, ?it/s]\n1it [00:00, 4.57it/s]\n164it [00:00, 732.26it/s]\n\n 0%| | 0/164 [00:00<?, ?it/s]\n 9%|\u2589 | 15/164 [00:00<00:01, 141.89it/s]\n 18%|\u2588\u258a | 30/164 [00:00<00:01, 116.09it/s]\n 40%|\u2588\u2588\u2588\u2588 | 66/164 [00:00<00:00, 211.58it/s]\n 57%|\u2588\u2588\u2588\u2588\u2588\u258b | 93/164 [00:00<00:00, 218.05it/s]\n 71%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588 | 116/164 [00:00<00:00, 156.33it/s]\n 82%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 135/164 [00:00<00:00, 146.18it/s]\n 96%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c| 157/164 [00:01<00:00, 142.85it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 164/164 [00:01<00:00, 123.93it/s]\n", | |
| "n_tasks": 164, | |
| "pass_at_1_base": 0.75, | |
| "pass_at_1_plus": 0.6890243902439024, | |
| "gen_elapsed_s": 4.769445180892944, | |
| "mean_completion_tokens": 58.798780487804876 | |
| }, | |
| "chat": { | |
| "elapsed_s": 4.913321256637573, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/fe585eb4df8c88d844eeb463ea4d0302.pkl\nReading samples...\nhumaneval (base tests)\npass@1:\t0.854\nhumaneval+ (base + extra tests)\npass@1:\t0.799\n", | |
| "stderr_tail": "\n0it [00:00, ?it/s]\n1it [00:00, 4.97it/s]\n164it [00:00, 799.61it/s]\n\n 0%| | 0/164 [00:00<?, ?it/s]\n 3%|\u258e | 5/164 [00:00<00:03, 47.60it/s]\n 10%|\u2589 | 16/164 [00:00<00:02, 71.44it/s]\n 28%|\u2588\u2588\u258a | 46/164 [00:00<00:00, 163.10it/s]\n 48%|\u2588\u2588\u2588\u2588\u258a | 78/164 [00:00<00:00, 220.21it/s]\n 62%|\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 101/164 [00:00<00:00, 133.41it/s]\n 77%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 126/164 [00:00<00:00, 146.16it/s]\n 95%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258d| 155/164 [00:00<00:00, 177.58it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 164/164 [00:03<00:00, 43.83it/s] \n", | |
| "n_tasks": 164, | |
| "pass_at_1_base": 0.8536585365853658, | |
| "pass_at_1_plus": 0.7987804878048781, | |
| "gen_elapsed_s": 9.163270473480225, | |
| "mean_completion_tokens": 206.41463414634146 | |
| } | |
| } | |
| }, | |
| "mbpp": { | |
| "dataset": "mbpp", | |
| "n_problems": 378, | |
| "max_new_tokens": 768, | |
| "greedy": true, | |
| "modes": { | |
| "completion": { | |
| "elapsed_s": 10.075867652893066, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/ee43ecabebf20deef4bb776a405ac5b1.pkl\nReading samples...\nmbpp (base tests)\npass@1:\t0.164\nmbpp+ (base + extra tests)\npass@1:\t0.140\n", | |
| "stderr_tail": " | 65/378 [00:00<00:02, 132.65it/s]\n 22%|\u2588\u2588\u258f | 84/378 [00:02<00:10, 28.54it/s] \n 32%|\u2588\u2588\u2588\u258f | 120/378 [00:02<00:06, 37.97it/s]\n 39%|\u2588\u2588\u2588\u2589 | 149/378 [00:03<00:04, 52.44it/s]\n 46%|\u2588\u2588\u2588\u2588\u258b | 175/378 [00:03<00:02, 69.66it/s]\n 51%|\u2588\u2588\u2588\u2588\u2588 | 191/378 [00:03<00:02, 73.51it/s]\n 55%|\u2588\u2588\u2588\u2588\u2588\u258d | 207/378 [00:03<00:02, 81.67it/s]\n 62%|\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 234/378 [00:03<00:01, 109.09it/s]\n 67%|\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 252/378 [00:03<00:01, 98.15it/s] \n 74%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258d | 281/378 [00:03<00:00, 129.87it/s]\n 79%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2589 | 300/378 [00:04<00:00, 131.99it/s]\n 85%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258d | 321/378 [00:04<00:00, 143.73it/s]\n 90%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 | 341/378 [00:04<00:00, 155.70it/s]\n 95%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c| 360/378 [00:04<00:00, 154.90it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:05<00:00, 53.46it/s] \n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:05<00:00, 71.24it/s]\n", | |
| "n_tasks": 378, | |
| "pass_at_1_base": 0.164021164021164, | |
| "pass_at_1_plus": 0.1402116402116402, | |
| "gen_elapsed_s": 11.806411266326904, | |
| "mean_completion_tokens": 25.317460317460316 | |
| }, | |
| "chat": { | |
| "elapsed_s": 11.837196826934814, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/ee43ecabebf20deef4bb776a405ac5b1.pkl\nReading samples...\nmbpp (base tests)\npass@1:\t0.759\nmbpp+ (base + extra tests)\npass@1:\t0.646\n", | |
| "stderr_tail": " | 119/378 [00:02<00:06, 40.02it/s]\n 35%|\u2588\u2588\u2588\u258c | 133/378 [00:03<00:07, 34.84it/s]\n 39%|\u2588\u2588\u2588\u2589 | 149/378 [00:03<00:05, 43.63it/s]\n 47%|\u2588\u2588\u2588\u2588\u258b | 176/378 [00:03<00:03, 60.23it/s]\n 54%|\u2588\u2588\u2588\u2588\u2588\u258e | 203/378 [00:03<00:02, 76.86it/s]\n 58%|\u2588\u2588\u2588\u2588\u2588\u258a | 221/378 [00:03<00:01, 90.02it/s]\n 62%|\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 236/378 [00:04<00:01, 87.88it/s]\n 67%|\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 255/378 [00:04<00:01, 103.31it/s]\n 71%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 270/378 [00:04<00:00, 111.63it/s]\n 75%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c | 285/378 [00:04<00:00, 111.05it/s]\n 81%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 | 307/378 [00:04<00:00, 134.69it/s]\n 85%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c | 323/378 [00:04<00:00, 123.43it/s]\n 90%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 | 342/378 [00:04<00:00, 137.32it/s]\n 95%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258d| 358/378 [00:04<00:00, 134.69it/s]\n 99%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258a| 373/378 [00:04<00:00, 136.02it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:07<00:00, 50.04it/s] \n", | |
| "n_tasks": 378, | |
| "pass_at_1_base": 0.7592592592592593, | |
| "pass_at_1_plus": 0.6455026455026455, | |
| "gen_elapsed_s": 16.944093227386475, | |
| "mean_completion_tokens": 108.78835978835978 | |
| } | |
| } | |
| }, | |
| "cti": { | |
| "n": 400, | |
| "max_new_tokens": 3072, | |
| "greedy": true, | |
| "by_type": { | |
| "mcq": { | |
| "n": 140, | |
| "accuracy": 0.55, | |
| "lenient_accuracy": 0.55, | |
| "partial": 0.55, | |
| "well_formed_frac": 1.0 | |
| }, | |
| "cwe": { | |
| "n": 200, | |
| "accuracy": 0.035, | |
| "lenient_accuracy": 0.52, | |
| "partial": 0.2775, | |
| "well_formed_frac": 0.045 | |
| }, | |
| "cvss": { | |
| "n": 60, | |
| "accuracy": 0.11666666666666667, | |
| "lenient_accuracy": 0.11666666666666667, | |
| "partial": 0.7229166666666667, | |
| "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.2275, | |
| "lenient_accuracy": 0.47, | |
| "mean_tokens": 124.6575, | |
| "truncated_frac": 0.0025 | |
| }, | |
| "secure_review": { | |
| "n": 300, | |
| "max_new_tokens": 1536, | |
| "greedy": true, | |
| "by_type": { | |
| "mcq": { | |
| "n": 300, | |
| "accuracy": 0.09, | |
| "lenient_accuracy": 0.75, | |
| "partial": 0.42, | |
| "well_formed_frac": 0.13666666666666666 | |
| } | |
| }, | |
| "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.09, | |
| "lenient_accuracy": 0.75, | |
| "mean_tokens": 112.05666666666667, | |
| "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.5, | |
| "solved_any": false, | |
| "mean_regression": 1.0, | |
| "mean_security": 0.5, | |
| "cwe_named_frac": 0.0 | |
| }, | |
| "sec_ssrf_validator": { | |
| "mean_correctness": 0.6666666666666666, | |
| "solved_any": false, | |
| "mean_regression": 0.6666666666666666, | |
| "mean_security": 1.0, | |
| "cwe_named_frac": 0.0 | |
| }, | |
| "sec_auth_none_compare": { | |
| "mean_correctness": 0.0, | |
| "solved_any": false, | |
| "mean_regression": 0.6666666666666666, | |
| "mean_security": 0.0, | |
| "cwe_named_frac": 0.0 | |
| }, | |
| "sec_unsafe_reflection": { | |
| "mean_correctness": 1.0, | |
| "solved_any": true, | |
| "mean_regression": 1.0, | |
| "mean_security": 1.0, | |
| "cwe_named_frac": 0.0 | |
| } | |
| }, | |
| "mean_correctness": 0.5416666666666666, | |
| "pass_rate": 0.25, | |
| "tasks_solved_any": 1, | |
| "cwe_named_frac": 0.0 | |
| } | |
| }, | |
| "elapsed_s": 263.64726662635803 | |
| } |