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-3b-instruct.json from SamJoshua/stacy: direct link, hf CLI and curl.
- Browser
- Download file 10.5 kB
-
https://huggingface.co/SamJoshua/stacy/resolve/main/eval/cmp_qwen2.5-3b-instruct.json
- Command line
-
hf download hf://SamJoshua/stacy/eval/cmp_qwen2.5-3b-instruct.json
-
curl -L -o cmp_qwen2.5-3b-instruct.json https://huggingface.co/SamJoshua/stacy/resolve/main/eval/cmp_qwen2.5-3b-instruct.json
10.5 kB
| { | |
| "name": "cmp_qwen2.5-3b-instruct", | |
| "model": "Qwen/Qwen2.5-3B-Instruct", | |
| "meta": { | |
| "timestamp": "2026-10-29T10:00:36+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-3B-Instruct", | |
| "--name", | |
| "cmp_qwen2.5-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": 3.438768148422241, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/fe585eb4df8c88d844eeb463ea4d0302.pkl\nReading samples...\nhumaneval (base tests)\npass@1:\t0.524\nhumaneval+ (base + extra tests)\npass@1:\t0.476\n", | |
| "stderr_tail": "\n0it [00:00, ?it/s]\n1it [00:00, 4.09it/s]\n164it [00:00, 660.21it/s]\n\n 0%| | 0/164 [00:00<?, ?it/s]\n 9%|\u2589 | 15/164 [00:00<00:01, 142.26it/s]\n 18%|\u2588\u258a | 30/164 [00:00<00:01, 118.99it/s]\n 40%|\u2588\u2588\u2588\u2589 | 65/164 [00:00<00:00, 211.05it/s]\n 55%|\u2588\u2588\u2588\u2588\u2588\u258c | 91/164 [00:00<00:00, 226.55it/s]\n 70%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588 | 115/164 [00:00<00:00, 148.72it/s]\n 82%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 134/164 [00:00<00:00, 141.77it/s]\n 96%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c| 157/164 [00:01<00:00, 146.89it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 164/164 [00:02<00:00, 74.18it/s] \n", | |
| "n_tasks": 164, | |
| "pass_at_1_base": 0.524390243902439, | |
| "pass_at_1_plus": 0.4817073170731707, | |
| "gen_elapsed_s": 8.166614055633545, | |
| "mean_completion_tokens": 59.51219512195122 | |
| }, | |
| "chat": { | |
| "elapsed_s": 3.032036542892456, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/fe585eb4df8c88d844eeb463ea4d0302.pkl\nReading samples...\nhumaneval (base tests)\npass@1:\t0.713\nhumaneval+ (base + extra tests)\npass@1:\t0.652\n", | |
| "stderr_tail": "\n0it [00:00, ?it/s]\n1it [00:00, 4.75it/s]\n164it [00:00, 765.75it/s]\n\n 0%| | 0/164 [00:00<?, ?it/s]\n 5%|\u258c | 9/164 [00:00<00:01, 88.16it/s]\n 11%|\u2588 | 18/164 [00:00<00:02, 70.22it/s]\n 29%|\u2588\u2588\u2589 | 48/164 [00:00<00:00, 160.00it/s]\n 48%|\u2588\u2588\u2588\u2588\u258a | 78/164 [00:00<00:00, 205.08it/s]\n 61%|\u2588\u2588\u2588\u2588\u2588\u2588 | 100/164 [00:00<00:00, 131.66it/s]\n 78%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258a | 128/164 [00:00<00:00, 153.22it/s]\n 95%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c| 156/164 [00:00<00:00, 180.70it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 164/164 [00:01<00:00, 88.73it/s] \n", | |
| "n_tasks": 164, | |
| "pass_at_1_base": 0.7134146341463414, | |
| "pass_at_1_plus": 0.6585365853658537, | |
| "gen_elapsed_s": 7.29199743270874, | |
| "mean_completion_tokens": 188.84146341463415 | |
| } | |
| } | |
| }, | |
| "mbpp": { | |
| "dataset": "mbpp", | |
| "n_problems": 378, | |
| "max_new_tokens": 768, | |
| "greedy": true, | |
| "modes": { | |
| "completion": { | |
| "elapsed_s": 32.217573404312134, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/ee43ecabebf20deef4bb776a405ac5b1.pkl\nReading samples...\nmbpp (base tests)\npass@1:\t0.476\nmbpp+ (base + extra tests)\npass@1:\t0.381\n", | |
| "stderr_tail": "\u2588\u2589 | 150/378 [00:03<00:04, 52.51it/s]\n 47%|\u2588\u2588\u2588\u2588\u258b | 179/378 [00:03<00:02, 67.28it/s]\n 54%|\u2588\u2588\u2588\u2588\u2588\u258d | 205/378 [00:03<00:02, 86.05it/s]\n 59%|\u2588\u2588\u2588\u2588\u2588\u2589 | 223/378 [00:03<00:01, 88.48it/s]\n 63%|\u2588\u2588\u2588\u2588\u2588\u2588\u258e | 239/378 [00:03<00:01, 97.48it/s]\n 67%|\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 255/378 [00:03<00:01, 96.70it/s]\n 74%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258e | 278/378 [00:03<00:00, 117.86it/s]\n 78%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258a | 294/378 [00:04<00:00, 124.72it/s]\n 82%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 310/378 [00:04<00:00, 132.31it/s]\n 86%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c | 326/378 [00:04<00:00, 127.97it/s]\n 91%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 | 343/378 [00:04<00:00, 135.84it/s]\n 96%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c| 361/378 [00:04<00:00, 142.23it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2589| 377/378 [00:05<00:00, 47.31it/s] \n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2589| 377/378 [00:19<00:00, 47.31it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:28<00:00, 1.74it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:28<00:00, 13.46it/s]\n", | |
| "n_tasks": 378, | |
| "pass_at_1_base": 0.47619047619047616, | |
| "pass_at_1_plus": 0.38095238095238093, | |
| "gen_elapsed_s": 36.984954833984375, | |
| "mean_completion_tokens": 43.66931216931217 | |
| }, | |
| "chat": { | |
| "elapsed_s": 10.152618646621704, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/ee43ecabebf20deef4bb776a405ac5b1.pkl\nReading samples...\nmbpp (base tests)\npass@1:\t0.735\nmbpp+ (base + extra tests)\npass@1:\t0.616\n", | |
| "stderr_tail": " | 64/378 [00:00<00:02, 118.67it/s]\n 20%|\u2588\u2588 | 76/378 [00:02<00:13, 22.95it/s] \n 32%|\u2588\u2588\u2588\u258f | 120/378 [00:03<00:07, 36.19it/s]\n 39%|\u2588\u2588\u2588\u2589 | 148/378 [00:03<00:04, 47.57it/s]\n 47%|\u2588\u2588\u2588\u2588\u258b | 176/378 [00:03<00:03, 61.71it/s]\n 54%|\u2588\u2588\u2588\u2588\u2588\u258d | 204/378 [00:03<00:02, 77.00it/s]\n 61%|\u2588\u2588\u2588\u2588\u2588\u2588 | 231/378 [00:03<00:01, 90.24it/s]\n 66%|\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 251/378 [00:04<00:01, 93.56it/s]\n 71%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588 | 269/378 [00:04<00:01, 104.54it/s]\n 75%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258d | 283/378 [00:04<00:00, 109.12it/s]\n 81%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 | 307/378 [00:04<00:00, 132.69it/s]\n 86%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c | 324/378 [00:04<00:00, 122.85it/s]\n 91%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f| 345/378 [00:04<00:00, 140.06it/s]\n 96%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c| 362/378 [00:04<00:00, 140.51it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:05<00:00, 49.13it/s] \n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:05<00:00, 66.21it/s]\n", | |
| "n_tasks": 378, | |
| "pass_at_1_base": 0.7354497354497355, | |
| "pass_at_1_plus": 0.6190476190476191, | |
| "gen_elapsed_s": 12.888275861740112, | |
| "mean_completion_tokens": 84.53968253968254 | |
| } | |
| } | |
| }, | |
| "cti": { | |
| "n": 400, | |
| "max_new_tokens": 3072, | |
| "greedy": true, | |
| "by_type": { | |
| "mcq": { | |
| "n": 140, | |
| "accuracy": 0.6357142857142857, | |
| "lenient_accuracy": 0.6357142857142857, | |
| "partial": 0.6357142857142857, | |
| "well_formed_frac": 1.0 | |
| }, | |
| "cwe": { | |
| "n": 200, | |
| "accuracy": 0.015, | |
| "lenient_accuracy": 0.285, | |
| "partial": 0.15, | |
| "well_formed_frac": 0.045 | |
| }, | |
| "cvss": { | |
| "n": 60, | |
| "accuracy": 0.03333333333333333, | |
| "lenient_accuracy": 0.03333333333333333, | |
| "partial": 0.6125, | |
| "well_formed_frac": 0.8166666666666667 | |
| } | |
| }, | |
| "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.235, | |
| "lenient_accuracy": 0.37, | |
| "mean_tokens": 142.2075, | |
| "truncated_frac": 0.0025 | |
| }, | |
| "secure_review": { | |
| "n": 300, | |
| "max_new_tokens": 1536, | |
| "greedy": true, | |
| "by_type": { | |
| "mcq": { | |
| "n": 300, | |
| "accuracy": 0.26, | |
| "lenient_accuracy": 0.7333333333333333, | |
| "partial": 0.49666666666666665, | |
| "well_formed_frac": 0.4166666666666667 | |
| } | |
| }, | |
| "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.26, | |
| "lenient_accuracy": 0.7333333333333333, | |
| "mean_tokens": 227.64666666666668, | |
| "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.5555555555555556, | |
| "solved_any": false, | |
| "mean_regression": 0.6666666666666666, | |
| "mean_security": 0.8333333333333334, | |
| "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.2638888888888889, | |
| "pass_rate": 0.0, | |
| "tasks_solved_any": 0, | |
| "cwe_named_frac": 0.0 | |
| } | |
| }, | |
| "elapsed_s": 288.29693150520325 | |
| } |