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/data_card.json from SamJoshua/stacy: direct link, hf CLI and curl.
- Browser
- Download file 7.47 kB
-
https://huggingface.co/SamJoshua/stacy/resolve/main/eval/data_card.json
- Command line
-
hf download hf://SamJoshua/stacy/eval/data_card.json
-
curl -L -o data_card.json https://huggingface.co/SamJoshua/stacy/resolve/main/eval/data_card.json
7.47 kB
| { | |
| "meta": { | |
| "timestamp": "2026-10-29T01:08:53+0530", | |
| "git_sha": "98f808c4ea9c4e83e16050358e80288642d0cd80", | |
| "python": "3.13.14", | |
| "platform": "Linux-7.0.0-38-generic-x86_64-with-glibc2.39", | |
| "argv": [ | |
| "scripts/enterprise/data/prepare_data.py", | |
| "--workers", | |
| "40" | |
| ], | |
| "torch": "2.13.0+cu130", | |
| "gpu": "NVIDIA RTX PRO 6000 Blackwell Workstation Edition", | |
| "transformers": "5.19.0" | |
| }, | |
| "datasets": { | |
| "trendmicro-ailab/Primus-Seed": { | |
| "license": "odc-by", | |
| "role": "cpt", | |
| "local": "/models/primus/Primus-Seed", | |
| "revision": "76d5a5a2558b53a0f3ff47b080e2a65ab3d260f4", | |
| "gated": "auto", | |
| "hub_license": "odc-by" | |
| }, | |
| "trendmicro-ailab/Primus-FineWeb": { | |
| "license": "odc-by", | |
| "role": "cpt", | |
| "local": "/models/primus/Primus-FineWeb", | |
| "revision": "41058dbfa82fd0b11a12605cad17139ca57558d4", | |
| "gated": "auto", | |
| "hub_license": "odc-by" | |
| }, | |
| "HuggingFaceFW/fineweb-edu": { | |
| "license": "odc-by", | |
| "role": "cpt-replay", | |
| "local": "data/fineweb-edu (CC-MAIN-2015-18 only)", | |
| "revision": "87f09149ef4734204d70ed1d046ddc9ca3f2b8f9", | |
| "gated": false, | |
| "hub_license": "odc-by" | |
| }, | |
| "trendmicro-ailab/Primus-Instruct": { | |
| "license": "odc-by", | |
| "role": "sft", | |
| "local": "/models/primus/Primus-Instruct", | |
| "revision": "9c8b1dcaa93b3d916e1615b72329b4d25fee39af", | |
| "gated": "auto", | |
| "hub_license": "odc-by" | |
| }, | |
| "trendmicro-ailab/Primus-Reasoning": { | |
| "license": "odc-by", | |
| "role": "sft+rl+eval", | |
| "local": "/models/primus/Primus-Reasoning", | |
| "revision": "9706c39afcb1649e2212498edba59e901e1535f9", | |
| "gated": "auto", | |
| "hub_license": "odc-by" | |
| }, | |
| "ise-uiuc/Magicoder-OSS-Instruct-75K": { | |
| "license": "mit", | |
| "role": "sft", | |
| "local": "/models/sft_data/Magicoder-OSS-Instruct-75K", | |
| "revision": "5f839b1f368a76b161028bb9edff055db34022b2", | |
| "gated": false, | |
| "hub_license": "mit" | |
| }, | |
| "CyberNative/Code_Vulnerability_Security_DPO": { | |
| "license": "apache-2.0", | |
| "role": "sft+rl+eval", | |
| "local": "/models/sft_data/Code_Vulnerability_Security_DPO", | |
| "revision": "9e32f2a965c8ca4d3442924a1afee2a127272d08", | |
| "gated": false, | |
| "hub_license": "apache-2.0" | |
| }, | |
| "PrimeIntellect/verifiable-coding-problems": { | |
| "license": "unspecified on Hub (card lists sources: apps/code_contests/taco/codeforces)", | |
| "role": "rl", | |
| "local": "/models/rl_data/verifiable-coding-problems", | |
| "revision": "45220c92768b1e401aadffbf26849b8d6cf39a36", | |
| "gated": false, | |
| "hub_license": null | |
| }, | |
| "likaixin/TACO-verified": { | |
| "license": "mit", | |
| "role": "assessed, not used", | |
| "local": "/models/rl_data/TACO-verified", | |
| "revision": "9e68575e01938f016199eda6f07d1a7ce96b35e1", | |
| "gated": false, | |
| "hub_license": "mit" | |
| }, | |
| "evalplus/humanevalplus": { | |
| "license": "apache-2.0", | |
| "role": "eval", | |
| "local": "evalplus cache", | |
| "revision": "d32357cf319e50e9c8d8dab5ea876c72b0fd321b", | |
| "gated": false, | |
| "hub_license": "apache-2.0" | |
| }, | |
| "evalplus/mbppplus": { | |
| "license": "apache-2.0", | |
| "role": "eval", | |
| "local": "evalplus cache", | |
| "revision": "b2d74c91837c3f2a20c1299ae98133cbe7cfa077", | |
| "gated": false, | |
| "hub_license": "apache-2.0" | |
| } | |
| }, | |
| "outputs": { | |
| "sft_train.jsonl": { | |
| "n": 25284, | |
| "by": { | |
| "magicoder_oss": 19596, | |
| "primus_instruct": 802, | |
| "primus_reasoning": 3505, | |
| "cybernative_secure": 1381 | |
| } | |
| }, | |
| "sft_val.jsonl": { | |
| "n": 515, | |
| "by": { | |
| "primus_reasoning": 62, | |
| "primus_instruct": 19, | |
| "magicoder_oss": 404, | |
| "cybernative_secure": 30 | |
| } | |
| }, | |
| "sft_train_nothink.jsonl": { | |
| "n": 25284, | |
| "by": { | |
| "magicoder_oss": 19596, | |
| "primus_instruct": 802, | |
| "primus_reasoning": 3505, | |
| "cybernative_secure": 1381 | |
| } | |
| }, | |
| "rl_coding.jsonl": { | |
| "n": 3383, | |
| "by": { | |
| "stdin_stdout": 3169, | |
| "function_call": 214 | |
| } | |
| }, | |
| "rl_cti.jsonl": { | |
| "n": 2160, | |
| "by": { | |
| "cwe": 1195, | |
| "mcq": 694, | |
| "cvss": 271 | |
| } | |
| }, | |
| "rl_secure_review.jsonl": { | |
| "n": 2000, | |
| "by": { | |
| "c#": 196, | |
| "python": 193, | |
| "ruby": 187, | |
| "kotlin": 172, | |
| "swift": 167, | |
| "javascript": 190, | |
| "c++": 185, | |
| "fortran": 179, | |
| "go": 166, | |
| "java": 180, | |
| "php": 185 | |
| } | |
| }, | |
| "eval_cti.jsonl": { | |
| "n": 400, | |
| "by": { | |
| "mcq": 140, | |
| "cwe": 200, | |
| "cvss": 60 | |
| } | |
| }, | |
| "eval_secure_review.jsonl": { | |
| "n": 300, | |
| "by": { | |
| "ruby": 25, | |
| "swift": 32, | |
| "go": 24, | |
| "c#": 22, | |
| "java": 30, | |
| "kotlin": 36, | |
| "fortran": 26, | |
| "python": 24, | |
| "php": 35, | |
| "javascript": 23, | |
| "c++": 23 | |
| } | |
| }, | |
| "security_patch_train.jsonl": { | |
| "n": 12, | |
| "by": { | |
| "CWE-89": 1, | |
| "CWE-22": 1, | |
| "CWE-78": 1, | |
| "CWE-95": 1, | |
| "CWE-916": 1, | |
| "CWE-502": 1, | |
| "CWE-330": 1, | |
| "CWE-601": 1, | |
| "CWE-79": 1, | |
| "CWE-915": 1, | |
| "CWE-732": 1, | |
| "CWE-209": 1 | |
| } | |
| }, | |
| "security_patch_eval.jsonl": { | |
| "n": 4, | |
| "by": { | |
| "CWE-22": 1, | |
| "CWE-918": 1, | |
| "CWE-287": 1, | |
| "CWE-470": 1 | |
| } | |
| } | |
| }, | |
| "preprocessing": [ | |
| "Primus-Reasoning: reserved_special_token_0/1 -> <think>/</think>; prompts with teacher disagreement or non-parsable gold excluded from RL/eval", | |
| "Primus-Reasoning eval: 50% CWE mapping / 35% MCQ / 15% CVSS prompts held out BEFORE building any train file; blocked by prompt hash", | |
| "CyberNative: pairwise A/B secure-review built with seeded random order; first 300 pairs held out for eval, next 2000 for RL, following rows as SFT (chosen as target)", | |
| "Magicoder-OSS-Instruct: uniform seeded subsample; problem -> user, solution -> assistant", | |
| "Primus-Instruct: messages used as-is (multi-turn prompt kept, last assistant turn is the target)", | |
| "verifiable-coding-problems: python only, >=2 tests, prompt <= 3000 chars, exact prompt dedup, gold solution must pass all sampled tests in the sandbox", | |
| "TACO-verified: schema inspected (input_output JSON with inputs/outputs, solutions list); not used for training because PrimeIntellect's taco source already covers it and mixing would double-count problems", | |
| "Hand-authored security patch tasks: each suite validated (vulnerable fails security tests, reference fix passes both); 4 tasks held out for eval" | |
| ], | |
| "dedup": { | |
| "sft_duplicate_prompts_dropped": 291, | |
| "sft_rows_dropped_for_eval_overlap": 0, | |
| "coding_filter_stats": { | |
| "rows_scanned": 31517, | |
| "non_python": 22937, | |
| "too_few_tests": 1738, | |
| "prompt_too_long": 664, | |
| "duplicate_prompt": 178 | |
| }, | |
| "coding_gold_validation": { | |
| "gold_passes": 3383, | |
| "gold_fails": 2034, | |
| "gold_partial": 583, | |
| "mean_validation_s": 0.2559278885126114 | |
| } | |
| }, | |
| "eval_train_separation": { | |
| "method": "sha1(prompt) blocklist applied to all train files", | |
| "eval_cti": 400, | |
| "eval_secure_review": 300, | |
| "coding_eval": "EvalPlus HumanEval+/MBPP+ (external benchmark, not in any train file)" | |
| } | |
| } |