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_rlvr_long_p2.json from SamJoshua/stacy: direct link, hf CLI and curl.
- Browser
- Download file 9.85 kB
-
https://huggingface.co/SamJoshua/stacy/resolve/main/eval/cmp_rlvr_long_p2.json
- Command line
-
hf download hf://SamJoshua/stacy/eval/cmp_rlvr_long_p2.json
-
curl -L -o cmp_rlvr_long_p2.json https://huggingface.co/SamJoshua/stacy/resolve/main/eval/cmp_rlvr_long_p2.json
9.85 kB
| { | |
| "name": "cmp_rlvr_long_p2", | |
| "model": "/models/ckpts/grpo_agent_rlvr_long/final", | |
| "meta": { | |
| "timestamp": "2026-11-03T15:14:01+0530", | |
| "git_sha": "a7efba4d46c45540ad56d5d9f3d5d98bceeb8c37", | |
| "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_agent_rlvr_long/final", | |
| "--name", | |
| "cmp_rlvr_long_p2", | |
| "--tasks", | |
| "cti,secure_review,security_patch,triage", | |
| "--merge", | |
| "--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": [ | |
| "cti", | |
| "secure_review", | |
| "security_patch", | |
| "triage" | |
| ], | |
| "gpu_mem": 0.6, | |
| "detok": "vllm", | |
| "merged_tasks": { | |
| "previous_meta": { | |
| "timestamp": "2026-11-03T06:17:42+0530", | |
| "git_sha": "e220122610ac4bc9c7c016caa4985886449151a5", | |
| "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_agent_rlvr_long/final", | |
| "--name", | |
| "cmp_rlvr_long_p2", | |
| "--tasks", | |
| "humaneval,mbpp,humanevalfix", | |
| "--code_modes", | |
| "chat", | |
| "--gpu_mem", | |
| "0.5", | |
| "--max_model_len", | |
| "4096" | |
| ], | |
| "torch": "2.13.0+cu130", | |
| "gpu": "NVIDIA RTX PRO 6000 Blackwell Workstation Edition", | |
| "transformers": "5.19.0", | |
| "tasks": [ | |
| "humaneval", | |
| "mbpp", | |
| "humanevalfix" | |
| ], | |
| "gpu_mem": 0.5, | |
| "detok": "vllm" | |
| }, | |
| "rerun": [ | |
| "cti", | |
| "secure_review", | |
| "security_patch", | |
| "triage" | |
| ] | |
| } | |
| }, | |
| "results": { | |
| "humaneval": { | |
| "dataset": "humaneval", | |
| "n_problems": 164, | |
| "max_new_tokens": 768, | |
| "greedy": true, | |
| "modes": { | |
| "chat": { | |
| "elapsed_s": 3.6209585666656494, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/fe585eb4df8c88d844eeb463ea4d0302.pkl\nReading samples...\nhumaneval (base tests)\npass@1:\t0.720\nhumaneval+ (base + extra tests)\npass@1:\t0.671\n", | |
| "stderr_tail": "\n0it [00:00, ?it/s]\n1it [00:00, 4.85it/s]\n164it [00:00, 781.22it/s]\n\n 0%| | 0/164 [00:00<?, ?it/s]\n 9%|\u2589 | 15/164 [00:00<00:01, 147.23it/s]\n 18%|\u2588\u258a | 30/164 [00:00<00:01, 122.42it/s]\n 43%|\u2588\u2588\u2588\u2588\u258e | 70/164 [00:00<00:00, 226.81it/s]\n 60%|\u2588\u2588\u2588\u2588\u2588\u2589 | 98/164 [00:00<00:00, 144.91it/s]\n 77%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 126/164 [00:00<00:00, 166.58it/s]\n 96%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b| 158/164 [00:00<00:00, 180.42it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 164/164 [00:02<00:00, 66.24it/s] \n", | |
| "n_tasks": 164, | |
| "pass_at_1_base": 0.7195121951219512, | |
| "pass_at_1_plus": 0.676829268292683, | |
| "gen_elapsed_s": 6.1850104331970215, | |
| "mean_completion_tokens": 190.0487804878049 | |
| } | |
| } | |
| }, | |
| "mbpp": { | |
| "dataset": "mbpp", | |
| "n_problems": 378, | |
| "max_new_tokens": 768, | |
| "greedy": true, | |
| "modes": { | |
| "chat": { | |
| "elapsed_s": 16.93199586868286, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/ee43ecabebf20deef4bb776a405ac5b1.pkl\nReading samples...\nmbpp (base tests)\npass@1:\t0.746\nmbpp+ (base + extra tests)\npass@1:\t0.630\n", | |
| "stderr_tail": " | 1/378 [00:00<01:00, 6.28it/s]\n 8%|\u258a | 32/378 [00:00<00:02, 126.30it/s]\n 17%|\u2588\u258b | 63/378 [00:00<00:01, 173.68it/s]\n 22%|\u2588\u2588\u258f | 82/378 [00:02<00:10, 28.41it/s] \n 31%|\u2588\u2588\u2588\u258f | 119/378 [00:02<00:05, 45.83it/s]\n 35%|\u2588\u2588\u2588\u258d | 132/378 [00:02<00:05, 46.64it/s]\n 40%|\u2588\u2588\u2588\u2589 | 150/378 [00:02<00:03, 58.04it/s]\n 47%|\u2588\u2588\u2588\u2588\u258b | 179/378 [00:03<00:02, 79.24it/s]\n 55%|\u2588\u2588\u2588\u2588\u2588\u258d | 207/378 [00:03<00:01, 102.07it/s]\n 62%|\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 235/378 [00:03<00:01, 118.21it/s]\n 67%|\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 254/378 [00:03<00:01, 119.44it/s]\n 76%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 289/378 [00:03<00:00, 148.16it/s]\n 84%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258d | 318/378 [00:03<00:00, 163.16it/s]\n 91%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f| 345/378 [00:03<00:00, 184.34it/s]\n 97%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b| 367/378 [00:03<00:00, 177.65it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:13<00:00, 28.98it/s] \n", | |
| "n_tasks": 378, | |
| "pass_at_1_base": 0.746031746031746, | |
| "pass_at_1_plus": 0.6349206349206349, | |
| "gen_elapsed_s": 19.79348587989807, | |
| "mean_completion_tokens": 49.03968253968254 | |
| } | |
| } | |
| }, | |
| "humanevalfix": { | |
| "dataset": "bigcode/humanevalpack:python", | |
| "n": 164, | |
| "pass_at_1": 0.4695121951219512, | |
| "greedy": true, | |
| "max_new_tokens": 1024, | |
| "by_bug_type": { | |
| "excess logic": "10/31", | |
| "function misuse": "5/8", | |
| "missing logic": "15/33", | |
| "operator misuse": "13/25", | |
| "value misuse": "21/44", | |
| "variable misuse": "13/23" | |
| } | |
| }, | |
| "cti": { | |
| "n": 400, | |
| "max_new_tokens": 3072, | |
| "greedy": true, | |
| "by_type": { | |
| "mcq": { | |
| "n": 140, | |
| "accuracy": 0.6214285714285714, | |
| "lenient_accuracy": 0.6214285714285714, | |
| "partial": 0.6214285714285714, | |
| "well_formed_frac": 1.0 | |
| }, | |
| "cwe": { | |
| "n": 200, | |
| "accuracy": 0.495, | |
| "lenient_accuracy": 0.515, | |
| "partial": 0.505, | |
| "well_formed_frac": 0.935 | |
| }, | |
| "cvss": { | |
| "n": 60, | |
| "accuracy": 0.26666666666666666, | |
| "lenient_accuracy": 0.26666666666666666, | |
| "partial": 0.3770833333333333, | |
| "well_formed_frac": 0.43333333333333335 | |
| } | |
| }, | |
| "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.505, | |
| "lenient_accuracy": 0.515, | |
| "mean_tokens": 12.8975, | |
| "truncated_frac": 0.0 | |
| }, | |
| "secure_review": { | |
| "n": 300, | |
| "max_new_tokens": 1536, | |
| "greedy": true, | |
| "by_type": { | |
| "mcq": { | |
| "n": 300, | |
| "accuracy": 0.0033333333333333335, | |
| "lenient_accuracy": 0.63, | |
| "partial": 0.31666666666666665, | |
| "well_formed_frac": 0.01 | |
| } | |
| }, | |
| "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.0033333333333333335, | |
| "lenient_accuracy": 0.63, | |
| "mean_tokens": 73.86666666666666, | |
| "truncated_frac": 0.0033333333333333335 | |
| }, | |
| "security_patch": { | |
| "n_tasks": 7, | |
| "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.05555555555555555, | |
| "solved_any": false, | |
| "mean_regression": 0.3333333333333333, | |
| "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.5, | |
| "solved_any": false, | |
| "mean_regression": 0.5, | |
| "mean_security": 1.0, | |
| "cwe_named_frac": 0.0 | |
| }, | |
| "sec_cookie_flags": { | |
| "mean_correctness": 0.6666666666666666, | |
| "solved_any": false, | |
| "mean_regression": 1.0, | |
| "mean_security": 0.6666666666666666, | |
| "cwe_named_frac": 0.0 | |
| }, | |
| "sec_origin_allow": { | |
| "mean_correctness": 0.2222222222222222, | |
| "solved_any": false, | |
| "mean_regression": 0.6666666666666666, | |
| "mean_security": 0.3333333333333333, | |
| "cwe_named_frac": 0.0 | |
| }, | |
| "sec_predictable_temp": { | |
| "mean_correctness": 0.0, | |
| "solved_any": false, | |
| "mean_regression": 0.0, | |
| "mean_security": 0.0, | |
| "cwe_named_frac": 0.0 | |
| } | |
| }, | |
| "mean_correctness": 0.3492063492063492, | |
| "pass_rate": 0.14285714285714285, | |
| "tasks_solved_any": 1, | |
| "cwe_named_frac": 0.0 | |
| }, | |
| "triage": { | |
| "n": 14, | |
| "max_new_tokens": 1536, | |
| "greedy": true, | |
| "by_type": { | |
| "label": { | |
| "n": 14, | |
| "accuracy": 0.5, | |
| "lenient_accuracy": 0.5, | |
| "partial": 0.5, | |
| "well_formed_frac": 1.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.5, | |
| "lenient_accuracy": 0.5, | |
| "mean_tokens": 2.0714285714285716, | |
| "truncated_frac": 0.0 | |
| } | |
| }, | |
| "elapsed_s": 39.450376749038696 | |
| } |