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/base.json from SamJoshua/stacy: direct link, hf CLI and curl.
- Browser
- Download file 10.9 kB
-
https://huggingface.co/SamJoshua/stacy/resolve/main/eval/base.json
- Command line
-
hf download hf://SamJoshua/stacy/eval/base.json
-
curl -L -o base.json https://huggingface.co/SamJoshua/stacy/resolve/main/eval/base.json
10.9 kB
| { | |
| "name": "base", | |
| "model": "Qwen/Qwen2.5-Coder-1.5B", | |
| "meta": { | |
| "timestamp": "2026-10-29T07:26:41+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", | |
| "Qwen/Qwen2.5-Coder-1.5B", | |
| "--name", | |
| "base", | |
| "--tasks", | |
| "cti,secure_review", | |
| "--merge", | |
| "--gpu_mem", | |
| "0.14", | |
| "--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.14, | |
| "merged_tasks": { | |
| "previous_meta": { | |
| "timestamp": "2026-10-29T01:35:39+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", | |
| "Qwen/Qwen2.5-Coder-1.5B", | |
| "--name", | |
| "base", | |
| "--gpu_mem", | |
| "0.18" | |
| ], | |
| "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.18, | |
| "rescored_at": "2026-10-29T02:12:15" | |
| }, | |
| "rerun": [ | |
| "cti", | |
| "secure_review" | |
| ] | |
| } | |
| }, | |
| "results": { | |
| "humaneval": { | |
| "dataset": "humaneval", | |
| "n_problems": 164, | |
| "max_new_tokens": 768, | |
| "greedy": true, | |
| "modes": { | |
| "completion": { | |
| "elapsed_s": 2.6858162879943848, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/fe585eb4df8c88d844eeb463ea4d0302.pkl\nReading samples...\nhumaneval (base tests)\npass@1:\t0.421\nhumaneval+ (base + extra tests)\npass@1:\t0.360\n", | |
| "stderr_tail": "\n0it [00:00, ?it/s]\n1it [00:00, 4.65it/s]\n164it [00:00, 751.56it/s]\n\n 0%| | 0/164 [00:00<?, ?it/s]\n 7%|\u258b | 12/164 [00:00<00:01, 107.91it/s]\n 14%|\u2588\u258d | 23/164 [00:00<00:01, 85.61it/s] \n 35%|\u2588\u2588\u2588\u258c | 58/164 [00:00<00:00, 186.40it/s]\n 56%|\u2588\u2588\u2588\u2588\u2588\u258c | 92/164 [00:00<00:00, 236.70it/s]\n 72%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 118/164 [00:00<00:00, 177.92it/s]\n 85%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258d | 139/164 [00:00<00:00, 169.84it/s]\n 97%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b| 159/164 [00:00<00:00, 172.92it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 164/164 [00:01<00:00, 110.10it/s]\n", | |
| "n_tasks": 164, | |
| "pass_at_1_base": 0.42073170731707316, | |
| "pass_at_1_plus": 0.36585365853658536, | |
| "gen_elapsed_s": 14.145675659179688, | |
| "mean_completion_tokens": 47.71341463414634 | |
| }, | |
| "chat": { | |
| "elapsed_s": 8.861896991729736, | |
| "returncode": 0, | |
| "stdout_tail": "Computing expected output...\nExpected outputs computed in 6.79s\nReading samples...\nhumaneval (base tests)\npass@1:\t0.030\nhumaneval+ (base + extra tests)\npass@1:\t0.030\n", | |
| "stderr_tail": "\n0it [00:00, ?it/s]\n1it [00:00, 5.09it/s]\n164it [00:00, 817.13it/s]\n\n 0%| | 0/164 [00:00<?, ?it/s]\n 10%|\u2589 | 16/164 [00:00<00:01, 77.31it/s]\n 34%|\u2588\u2588\u2588\u258e | 55/164 [00:00<00:00, 203.37it/s]\n 57%|\u2588\u2588\u2588\u2588\u2588\u258b | 94/164 [00:00<00:00, 270.56it/s]\n 77%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 126/164 [00:00<00:00, 205.04it/s]\n 92%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f| 151/164 [00:00<00:00, 191.89it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 164/164 [00:00<00:00, 182.32it/s]\n", | |
| "n_tasks": 164, | |
| "pass_at_1_base": 0.03048780487804878, | |
| "pass_at_1_plus": 0.03048780487804878, | |
| "gen_elapsed_s": 19.389307022094727, | |
| "mean_completion_tokens": 768.0 | |
| } | |
| } | |
| }, | |
| "mbpp": { | |
| "dataset": "mbpp", | |
| "n_problems": 378, | |
| "max_new_tokens": 768, | |
| "greedy": true, | |
| "modes": { | |
| "completion": { | |
| "elapsed_s": 31.83843445777893, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/ee43ecabebf20deef4bb776a405ac5b1.pkl\nReading samples...\nmbpp (base tests)\npass@1:\t0.495\nmbpp+ (base + extra tests)\npass@1:\t0.421\n", | |
| "stderr_tail": "\u258f | 119/378 [00:02<00:05, 44.82it/s]\n 34%|\u2588\u2588\u2588\u258d | 130/378 [00:02<00:05, 42.84it/s]\n 40%|\u2588\u2588\u2588\u2589 | 150/378 [00:03<00:04, 50.63it/s]\n 47%|\u2588\u2588\u2588\u2588\u258b | 179/378 [00:03<00:02, 66.41it/s]\n 55%|\u2588\u2588\u2588\u2588\u2588\u258d | 207/378 [00:03<00:02, 79.71it/s]\n 62%|\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 234/378 [00:03<00:01, 97.62it/s]\n 66%|\u2588\u2588\u2588\u2588\u2588\u2588\u258c | 248/378 [00:03<00:01, 98.59it/s]\n 69%|\u2588\u2588\u2588\u2588\u2588\u2588\u2589 | 262/378 [00:03<00:01, 103.38it/s]\n 76%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c | 286/378 [00:04<00:00, 118.95it/s]\n 83%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258e | 312/378 [00:04<00:00, 124.64it/s]\n 88%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258a | 332/378 [00:04<00:00, 138.91it/s]\n 92%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f| 348/378 [00:04<00:00, 131.89it/s]\n 96%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b| 364/378 [00:04<00:00, 126.72it/s]\n 96%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b| 364/378 [00:19<00:00, 126.72it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:28<00:00, 2.43it/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.4947089947089947, | |
| "pass_at_1_plus": 0.42328042328042326, | |
| "gen_elapsed_s": 30.03465700149536, | |
| "mean_completion_tokens": 35.32275132275132 | |
| }, | |
| "chat": { | |
| "elapsed_s": 30.388960599899292, | |
| "returncode": 0, | |
| "stdout_tail": "Computing expected output...\nExpected outputs computed in 22.44s\nReading samples...\nmbpp (base tests)\npass@1:\t0.024\nmbpp+ (base + extra tests)\npass@1:\t0.024\n", | |
| "stderr_tail": "/s]\n\n 0%| | 0/378 [00:00<?, ?it/s]\n 0%| | 1/378 [00:00<01:00, 6.25it/s]\n 9%|\u258a | 33/378 [00:00<00:02, 122.51it/s]\n 17%|\u2588\u258b | 65/378 [00:00<00:02, 155.98it/s]\n 21%|\u2588\u2588\u258f | 81/378 [00:02<00:10, 29.12it/s] \n 32%|\u2588\u2588\u2588\u258f | 120/378 [00:02<00:06, 42.33it/s]\n 40%|\u2588\u2588\u2588\u2589 | 151/378 [00:02<00:03, 59.22it/s]\n 48%|\u2588\u2588\u2588\u2588\u258a | 182/378 [00:02<00:02, 79.40it/s]\n 56%|\u2588\u2588\u2588\u2588\u2588\u258b | 213/378 [00:03<00:01, 101.68it/s]\n 65%|\u2588\u2588\u2588\u2588\u2588\u2588\u258d | 244/378 [00:03<00:01, 123.39it/s]\n 70%|\u2588\u2588\u2588\u2588\u2588\u2588\u2589 | 264/378 [00:03<00:00, 123.91it/s]\n 77%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 292/378 [00:03<00:00, 136.93it/s]\n 85%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c | 323/378 [00:03<00:00, 155.33it/s]\n 94%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258e| 354/378 [00:03<00:00, 169.24it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:04<00:00, 63.86it/s] \n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:04<00:00, 78.37it/s]\n", | |
| "n_tasks": 378, | |
| "pass_at_1_base": 0.023809523809523808, | |
| "pass_at_1_plus": 0.023809523809523808, | |
| "gen_elapsed_s": 41.223273515701294, | |
| "mean_completion_tokens": 768.0 | |
| } | |
| } | |
| }, | |
| "cti": { | |
| "n": 400, | |
| "max_new_tokens": 3072, | |
| "greedy": true, | |
| "by_type": { | |
| "mcq": { | |
| "n": 140, | |
| "accuracy": 0.014285714285714285, | |
| "lenient_accuracy": 0.07142857142857142, | |
| "partial": 0.04285714285714286, | |
| "well_formed_frac": 0.02142857142857143 | |
| }, | |
| "cwe": { | |
| "n": 200, | |
| "accuracy": 0.025, | |
| "lenient_accuracy": 0.38, | |
| "partial": 0.2025, | |
| "well_formed_frac": 0.06 | |
| }, | |
| "cvss": { | |
| "n": 60, | |
| "accuracy": 0.0, | |
| "lenient_accuracy": 0.0, | |
| "partial": 0.0, | |
| "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.0175, | |
| "lenient_accuracy": 0.215, | |
| "mean_tokens": 941.5375, | |
| "truncated_frac": 0.275 | |
| }, | |
| "secure_review": { | |
| "n": 300, | |
| "max_new_tokens": 1536, | |
| "greedy": true, | |
| "by_type": { | |
| "mcq": { | |
| "n": 300, | |
| "accuracy": 0.0, | |
| "lenient_accuracy": 0.54, | |
| "partial": 0.27, | |
| "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.54, | |
| "mean_tokens": 351.81, | |
| "truncated_frac": 0.18666666666666668 | |
| }, | |
| "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.75 | |
| }, | |
| "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": 1.0, | |
| "solved_any": true, | |
| "mean_regression": 1.0, | |
| "mean_security": 1.0, | |
| "cwe_named_frac": 0.0 | |
| } | |
| }, | |
| "mean_correctness": 0.6666666666666666, | |
| "pass_rate": 0.5, | |
| "tasks_solved_any": 2, | |
| "cwe_named_frac": 0.1875 | |
| } | |
| }, | |
| "elapsed_s": 74.04188680648804 | |
| } |