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/exp_merge_delta.json from SamJoshua/stacy: direct link, hf CLI and curl.
- Browser
- Download file 10.3 kB
-
https://huggingface.co/SamJoshua/stacy/resolve/main/eval/exp_merge_delta.json
- Command line
-
hf download hf://SamJoshua/stacy/eval/exp_merge_delta.json
-
curl -L -o exp_merge_delta.json https://huggingface.co/SamJoshua/stacy/resolve/main/eval/exp_merge_delta.json
10.3 kB
| { | |
| "name": "exp_merge_delta", | |
| "model": "/models/ckpts/merge_delta", | |
| "meta": { | |
| "timestamp": "2026-10-29T09:49: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", | |
| "/models/ckpts/merge_delta", | |
| "--name", | |
| "exp_merge_delta", | |
| "--gpu_mem", | |
| "0.25", | |
| "--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.25 | |
| }, | |
| "results": { | |
| "humaneval": { | |
| "dataset": "humaneval", | |
| "n_problems": 164, | |
| "max_new_tokens": 768, | |
| "greedy": true, | |
| "modes": { | |
| "completion": { | |
| "elapsed_s": 2.533308267593384, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/fe585eb4df8c88d844eeb463ea4d0302.pkl\nReading samples...\nhumaneval (base tests)\npass@1:\t0.561\nhumaneval+ (base + extra tests)\npass@1:\t0.512\n", | |
| "stderr_tail": "\n0it [00:00, ?it/s]\n1it [00:00, 6.80it/s]\n164it [00:00, 1089.11it/s]\n\n 0%| | 0/164 [00:00<?, ?it/s]\n 10%|\u2589 | 16/164 [00:00<00:01, 88.23it/s]\n 46%|\u2588\u2588\u2588\u2588\u258b | 76/164 [00:00<00:00, 310.29it/s]\n 70%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588 | 115/164 [00:00<00:00, 225.76it/s]\n 88%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258a | 144/164 [00:00<00:00, 236.49it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 164/164 [00:01<00:00, 115.12it/s]\n", | |
| "n_tasks": 164, | |
| "pass_at_1_base": 0.5609756097560976, | |
| "pass_at_1_plus": 0.5182926829268293, | |
| "gen_elapsed_s": 5.386422157287598, | |
| "mean_completion_tokens": 53.80487804878049 | |
| }, | |
| "chat": { | |
| "elapsed_s": 4.579452037811279, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/fe585eb4df8c88d844eeb463ea4d0302.pkl\nReading samples...\nhumaneval (base tests)\npass@1:\t0.616\nhumaneval+ (base + extra tests)\npass@1:\t0.567\n", | |
| "stderr_tail": "\n0it [00:00, ?it/s]\n1it [00:00, 3.81it/s]\n164it [00:00, 612.62it/s]\n\n 0%| | 0/164 [00:00<?, ?it/s]\n 7%|\u258b | 11/164 [00:00<00:01, 105.64it/s]\n 13%|\u2588\u258e | 22/164 [00:00<00:01, 81.13it/s] \n 35%|\u2588\u2588\u2588\u258c | 58/164 [00:00<00:00, 186.89it/s]\n 53%|\u2588\u2588\u2588\u2588\u2588\u258e | 87/164 [00:00<00:00, 222.43it/s]\n 68%|\u2588\u2588\u2588\u2588\u2588\u2588\u258a | 111/164 [00:00<00:00, 138.50it/s]\n 79%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2589 | 130/164 [00:00<00:00, 132.45it/s]\n 96%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c| 157/164 [00:01<00:00, 142.01it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 164/164 [00:03<00:00, 50.15it/s] \n", | |
| "n_tasks": 164, | |
| "pass_at_1_base": 0.6158536585365854, | |
| "pass_at_1_plus": 0.5670731707317073, | |
| "gen_elapsed_s": 11.076589584350586, | |
| "mean_completion_tokens": 186.3841463414634 | |
| } | |
| } | |
| }, | |
| "mbpp": { | |
| "dataset": "mbpp", | |
| "n_problems": 378, | |
| "max_new_tokens": 768, | |
| "greedy": true, | |
| "modes": { | |
| "completion": { | |
| "elapsed_s": 32.40204310417175, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/ee43ecabebf20deef4bb776a405ac5b1.pkl\nReading samples...\nmbpp (base tests)\npass@1:\t0.542\nmbpp+ (base + extra tests)\npass@1:\t0.468\n", | |
| "stderr_tail": " | 119/378 [00:03<00:07, 36.30it/s]\n 39%|\u2588\u2588\u2588\u2589 | 148/378 [00:03<00:04, 50.12it/s]\n 47%|\u2588\u2588\u2588\u2588\u258b | 177/378 [00:03<00:03, 66.16it/s]\n 54%|\u2588\u2588\u2588\u2588\u2588\u258d | 206/378 [00:03<00:02, 82.02it/s]\n 62%|\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 233/378 [00:03<00:01, 92.92it/s]\n 67%|\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 253/378 [00:03<00:01, 98.60it/s]\n 71%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588 | 267/378 [00:04<00:01, 101.38it/s]\n 76%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c | 287/378 [00:04<00:00, 116.87it/s]\n 80%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2589 | 302/378 [00:04<00:00, 123.12it/s]\n 84%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258d | 317/378 [00:04<00:00, 108.83it/s]\n 90%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2589 | 339/378 [00:04<00:00, 130.50it/s]\n 94%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258d| 355/378 [00:04<00:00, 134.49it/s]\n 98%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258a| 371/378 [00:04<00:00, 121.22it/s]\n 98%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258a| 371/378 [00:19<00:00, 121.22it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:28<00:00, 2.04it/s] \n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:28<00:00, 13.48it/s]\n", | |
| "n_tasks": 378, | |
| "pass_at_1_base": 0.5423280423280423, | |
| "pass_at_1_plus": 0.47619047619047616, | |
| "gen_elapsed_s": 38.928059577941895, | |
| "mean_completion_tokens": 53.592592592592595 | |
| }, | |
| "chat": { | |
| "elapsed_s": 29.833776712417603, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/ee43ecabebf20deef4bb776a405ac5b1.pkl\nReading samples...\nmbpp (base tests)\npass@1:\t0.685\nmbpp+ (base + extra tests)\npass@1:\t0.593\n", | |
| "stderr_tail": " | 119/378 [00:02<00:05, 44.49it/s]\n 35%|\u2588\u2588\u2588\u258d | 131/378 [00:02<00:05, 43.75it/s]\n 39%|\u2588\u2588\u2588\u2589 | 149/378 [00:03<00:04, 50.88it/s]\n 47%|\u2588\u2588\u2588\u2588\u258b | 177/378 [00:03<00:03, 66.14it/s]\n 54%|\u2588\u2588\u2588\u2588\u2588\u258d | 205/378 [00:03<00:02, 79.39it/s]\n 61%|\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 232/378 [00:03<00:01, 92.95it/s]\n 67%|\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 255/378 [00:03<00:01, 110.29it/s]\n 71%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 270/378 [00:03<00:00, 110.93it/s]\n 76%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c | 286/378 [00:04<00:00, 119.05it/s]\n 83%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258e | 312/378 [00:04<00:00, 144.81it/s]\n 87%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 329/378 [00:04<00:00, 126.79it/s]\n 91%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 | 344/378 [00:04<00:00, 125.01it/s]\n 96%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b| 364/378 [00:04<00:00, 141.50it/s]\n 96%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b| 364/378 [00:19<00:00, 141.50it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:25<00:00, 2.74it/s] \n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:25<00:00, 14.73it/s]\n", | |
| "n_tasks": 378, | |
| "pass_at_1_base": 0.6851851851851852, | |
| "pass_at_1_plus": 0.6005291005291006, | |
| "gen_elapsed_s": 36.4224967956543, | |
| "mean_completion_tokens": 52.0 | |
| } | |
| } | |
| }, | |
| "cti": { | |
| "n": 400, | |
| "max_new_tokens": 3072, | |
| "greedy": true, | |
| "by_type": { | |
| "mcq": { | |
| "n": 140, | |
| "accuracy": 0.6285714285714286, | |
| "lenient_accuracy": 0.6285714285714286, | |
| "partial": 0.6285714285714286, | |
| "well_formed_frac": 1.0 | |
| }, | |
| "cwe": { | |
| "n": 200, | |
| "accuracy": 0.48, | |
| "lenient_accuracy": 0.595, | |
| "partial": 0.5375, | |
| "well_formed_frac": 0.78 | |
| }, | |
| "cvss": { | |
| "n": 60, | |
| "accuracy": 0.016666666666666666, | |
| "lenient_accuracy": 0.016666666666666666, | |
| "partial": 0.09583333333333334, | |
| "well_formed_frac": 0.15 | |
| } | |
| }, | |
| "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.4625, | |
| "lenient_accuracy": 0.52, | |
| "mean_tokens": 263.8775, | |
| "truncated_frac": 0.0675 | |
| }, | |
| "secure_review": { | |
| "n": 300, | |
| "max_new_tokens": 1536, | |
| "greedy": true, | |
| "by_type": { | |
| "mcq": { | |
| "n": 300, | |
| "accuracy": 0.016666666666666666, | |
| "lenient_accuracy": 0.56, | |
| "partial": 0.28833333333333333, | |
| "well_formed_frac": 0.02 | |
| } | |
| }, | |
| "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.016666666666666666, | |
| "lenient_accuracy": 0.56, | |
| "mean_tokens": 95.18666666666667, | |
| "truncated_frac": 0.006666666666666667 | |
| }, | |
| "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": 0.25, | |
| "cwe_named_frac": 0.0 | |
| }, | |
| "sec_ssrf_validator": { | |
| "mean_correctness": 0.4444444444444444, | |
| "solved_any": false, | |
| "mean_regression": 0.6666666666666666, | |
| "mean_security": 0.6666666666666666, | |
| "cwe_named_frac": 0.0 | |
| }, | |
| "sec_auth_none_compare": { | |
| "mean_correctness": 0.0, | |
| "solved_any": false, | |
| "mean_regression": 0.0, | |
| "mean_security": 0.0, | |
| "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.1111111111111111, | |
| "pass_rate": 0.0, | |
| "tasks_solved_any": 0, | |
| "cwe_named_frac": 0.0 | |
| } | |
| }, | |
| "elapsed_s": 138.28329968452454 | |
| } |