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_foundation-sec-8b-instruct.json from SamJoshua/stacy: direct link, hf CLI and curl.
- Browser
- Download file 10.2 kB
-
https://huggingface.co/SamJoshua/stacy/resolve/main/eval/cmp_foundation-sec-8b-instruct.json
- Command line
-
hf download hf://SamJoshua/stacy/eval/cmp_foundation-sec-8b-instruct.json
-
curl -L -o cmp_foundation-sec-8b-instruct.json https://huggingface.co/SamJoshua/stacy/resolve/main/eval/cmp_foundation-sec-8b-instruct.json
10.2 kB
| { | |
| "name": "cmp_foundation-sec-8b-instruct", | |
| "model": "fdtn-ai/Foundation-Sec-8B-Instruct", | |
| "meta": { | |
| "timestamp": "2026-10-29T10:09:21+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", | |
| "fdtn-ai/Foundation-Sec-8B-Instruct", | |
| "--name", | |
| "cmp_foundation-sec-8b-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.456217050552368, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/fe585eb4df8c88d844eeb463ea4d0302.pkl\nReading samples...\nhumaneval (base tests)\npass@1:\t0.598\nhumaneval+ (base + extra tests)\npass@1:\t0.518\n", | |
| "stderr_tail": "\n0it [00:00, ?it/s]\n1it [00:00, 4.25it/s]\n164it [00:00, 684.28it/s]\n\n 0%| | 0/164 [00:00<?, ?it/s]\n 3%|\u258e | 5/164 [00:00<00:03, 48.76it/s]\n 10%|\u2589 | 16/164 [00:00<00:02, 71.40it/s]\n 29%|\u2588\u2588\u2589 | 48/164 [00:00<00:00, 171.62it/s]\n 51%|\u2588\u2588\u2588\u2588\u2588 | 84/164 [00:00<00:00, 237.94it/s]\n 66%|\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 109/164 [00:00<00:00, 153.32it/s]\n 79%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258a | 129/164 [00:00<00:00, 149.56it/s]\n 98%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258a| 161/164 [00:01<00:00, 161.29it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 164/164 [00:02<00:00, 73.09it/s] \n", | |
| "n_tasks": 164, | |
| "pass_at_1_base": 0.5975609756097561, | |
| "pass_at_1_plus": 0.5182926829268293, | |
| "gen_elapsed_s": 8.244549989700317, | |
| "mean_completion_tokens": 74.3170731707317 | |
| }, | |
| "chat": { | |
| "elapsed_s": 3.519418239593506, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/fe585eb4df8c88d844eeb463ea4d0302.pkl\nReading samples...\nhumaneval (base tests)\npass@1:\t0.634\nhumaneval+ (base + extra tests)\npass@1:\t0.555\n", | |
| "stderr_tail": "\n0it [00:00, ?it/s]\n1it [00:00, 4.32it/s]\n164it [00:00, 695.68it/s]\n\n 0%| | 0/164 [00:00<?, ?it/s]\n 3%|\u258e | 5/164 [00:00<00:03, 49.24it/s]\n 10%|\u2589 | 16/164 [00:00<00:02, 64.80it/s]\n 34%|\u2588\u2588\u2588\u258d | 56/164 [00:00<00:00, 194.65it/s]\n 54%|\u2588\u2588\u2588\u2588\u2588\u258e | 88/164 [00:00<00:00, 237.72it/s]\n 70%|\u2588\u2588\u2588\u2588\u2588\u2588\u2589 | 114/164 [00:00<00:00, 158.33it/s]\n 82%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 134/164 [00:00<00:00, 146.41it/s]\n 98%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258a| 161/164 [00:01<00:00, 149.25it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 164/164 [00:02<00:00, 70.65it/s] \n", | |
| "n_tasks": 164, | |
| "pass_at_1_base": 0.6341463414634146, | |
| "pass_at_1_plus": 0.5548780487804879, | |
| "gen_elapsed_s": 12.815409898757935, | |
| "mean_completion_tokens": 209.29268292682926 | |
| } | |
| } | |
| }, | |
| "mbpp": { | |
| "dataset": "mbpp", | |
| "n_problems": 378, | |
| "max_new_tokens": 768, | |
| "greedy": true, | |
| "modes": { | |
| "completion": { | |
| "elapsed_s": 9.9910409450531, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/ee43ecabebf20deef4bb776a405ac5b1.pkl\nReading samples...\nmbpp (base tests)\npass@1:\t0.648\nmbpp+ (base + extra tests)\npass@1:\t0.537\n", | |
| "stderr_tail": " | 62/378 [00:00<00:02, 157.98it/s]\n 21%|\u2588\u2588\u258f | 81/378 [00:02<00:11, 25.66it/s] \n 32%|\u2588\u2588\u2588\u258f | 120/378 [00:03<00:07, 36.15it/s]\n 40%|\u2588\u2588\u2588\u2589 | 150/378 [00:03<00:04, 50.33it/s]\n 48%|\u2588\u2588\u2588\u2588\u258a | 180/378 [00:03<00:03, 65.48it/s]\n 55%|\u2588\u2588\u2588\u2588\u2588\u258c | 209/378 [00:03<00:02, 81.38it/s]\n 59%|\u2588\u2588\u2588\u2588\u2588\u2589 | 224/378 [00:03<00:01, 87.80it/s]\n 63%|\u2588\u2588\u2588\u2588\u2588\u2588\u258e | 239/378 [00:03<00:01, 95.09it/s]\n 67%|\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 254/378 [00:03<00:01, 96.42it/s]\n 73%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258e | 275/378 [00:04<00:00, 115.17it/s]\n 79%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2589 | 298/378 [00:04<00:00, 134.80it/s]\n 84%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258d | 318/378 [00:04<00:00, 147.83it/s]\n 89%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2589 | 336/378 [00:04<00:00, 143.15it/s]\n 94%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258d| 355/378 [00:04<00:00, 143.03it/s]\n 99%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2589| 376/378 [00:04<00:00, 147.65it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:05<00:00, 68.35it/s] \n", | |
| "n_tasks": 378, | |
| "pass_at_1_base": 0.6481481481481481, | |
| "pass_at_1_plus": 0.5396825396825397, | |
| "gen_elapsed_s": 14.66456651687622, | |
| "mean_completion_tokens": 50.804232804232804 | |
| }, | |
| "chat": { | |
| "elapsed_s": 71.79625248908997, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/ee43ecabebf20deef4bb776a405ac5b1.pkl\nReading samples...\nmbpp (base tests)\npass@1:\t0.606\nmbpp+ (base + extra tests)\npass@1:\t0.521\n", | |
| "stderr_tail": "[00:04<00:00, 127.86it/s]\n 88%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258a | 333/378 [00:04<00:00, 141.54it/s]\n 93%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258e| 350/378 [00:04<00:00, 135.86it/s]\n 97%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b| 365/378 [00:04<00:00, 138.77it/s]\n 97%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b| 365/378 [00:19<00:00, 138.77it/s]/home/vortex/train-llm-from-scratch/.venv/lib/python3.13/site-packages/evalplus/evaluate.py:239: UserWarning: No samples had finished testing in the last 20s\n warn(\"No samples had finished testing in the last 20s\")\n/home/vortex/train-llm-from-scratch/.venv/lib/python3.13/site-packages/evalplus/evaluate.py:240: UserWarning: 1 samples to be tested: {'Mbpp/20 (line 15 in /work/mbpp_chat_samples.jsonl)'}\n warn(f\"{len(remainings)} samples to be tested: {remainings}\")\n\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [01:07<00:00, 1.17s/it] \n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [01:07<00:00, 5.61it/s]\n", | |
| "n_tasks": 378, | |
| "pass_at_1_base": 0.6058201058201058, | |
| "pass_at_1_plus": 0.5211640211640212, | |
| "gen_elapsed_s": 80.31545758247375, | |
| "mean_completion_tokens": 156.85714285714286 | |
| } | |
| } | |
| }, | |
| "cti": { | |
| "n": 400, | |
| "max_new_tokens": 3072, | |
| "greedy": true, | |
| "by_type": { | |
| "mcq": { | |
| "n": 140, | |
| "accuracy": 0.65, | |
| "lenient_accuracy": 0.6642857142857143, | |
| "partial": 0.6571428571428571, | |
| "well_formed_frac": 0.9642857142857143 | |
| }, | |
| "cwe": { | |
| "n": 200, | |
| "accuracy": 0.15, | |
| "lenient_accuracy": 0.845, | |
| "partial": 0.4975, | |
| "well_formed_frac": 0.18 | |
| }, | |
| "cvss": { | |
| "n": 60, | |
| "accuracy": 0.03333333333333333, | |
| "lenient_accuracy": 0.03333333333333333, | |
| "partial": 0.03333333333333333, | |
| "well_formed_frac": 0.03333333333333333 | |
| } | |
| }, | |
| "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.3075, | |
| "lenient_accuracy": 0.66, | |
| "mean_tokens": 158.11, | |
| "truncated_frac": 0.0 | |
| }, | |
| "secure_review": { | |
| "n": 300, | |
| "max_new_tokens": 1536, | |
| "greedy": true, | |
| "by_type": { | |
| "mcq": { | |
| "n": 300, | |
| "accuracy": 0.016666666666666666, | |
| "lenient_accuracy": 0.64, | |
| "partial": 0.3283333333333333, | |
| "well_formed_frac": 0.07333333333333333 | |
| } | |
| }, | |
| "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.64, | |
| "mean_tokens": 207.12, | |
| "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": 0.0, | |
| "mean_security": 0.25, | |
| "cwe_named_frac": 0.25 | |
| }, | |
| "sec_ssrf_validator": { | |
| "mean_correctness": 0.3333333333333333, | |
| "solved_any": false, | |
| "mean_regression": 1.0, | |
| "mean_security": 0.3333333333333333, | |
| "cwe_named_frac": 0.0 | |
| }, | |
| "sec_auth_none_compare": { | |
| "mean_correctness": 0.6666666666666666, | |
| "solved_any": false, | |
| "mean_regression": 0.6666666666666666, | |
| "mean_security": 1.0, | |
| "cwe_named_frac": 0.0 | |
| }, | |
| "sec_unsafe_reflection": { | |
| "mean_correctness": 0.0, | |
| "solved_any": false, | |
| "mean_regression": 0.0, | |
| "mean_security": 0.0, | |
| "cwe_named_frac": 0.0 | |
| } | |
| }, | |
| "mean_correctness": 0.25, | |
| "pass_rate": 0.0, | |
| "tasks_solved_any": 0, | |
| "cwe_named_frac": 0.0625 | |
| } | |
| }, | |
| "elapsed_s": 578.808117389679 | |
| } |