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_agentA_p2.json from SamJoshua/stacy: direct link, hf CLI and curl.
- Browser
- Download file 4.87 kB
-
https://huggingface.co/SamJoshua/stacy/resolve/main/eval/cmp_agentA_p2.json
- Command line
-
hf download hf://SamJoshua/stacy/eval/cmp_agentA_p2.json
-
curl -L -o cmp_agentA_p2.json https://huggingface.co/SamJoshua/stacy/resolve/main/eval/cmp_agentA_p2.json
4.87 kB
| { | |
| "name": "cmp_agentA_p2", | |
| "model": "/models/ckpts/agent_A/final", | |
| "meta": { | |
| "timestamp": "2026-11-03T01:53:11+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/agent_A/final", | |
| "--name", | |
| "cmp_agentA_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" | |
| }, | |
| "results": { | |
| "humaneval": { | |
| "dataset": "humaneval", | |
| "n_problems": 164, | |
| "max_new_tokens": 768, | |
| "greedy": true, | |
| "modes": { | |
| "chat": { | |
| "elapsed_s": 2.983532190322876, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/fe585eb4df8c88d844eeb463ea4d0302.pkl\nReading samples...\nhumaneval (base tests)\npass@1:\t0.585\nhumaneval+ (base + extra tests)\npass@1:\t0.530\n", | |
| "stderr_tail": "\n0it [00:00, ?it/s]\n1it [00:00, 4.15it/s]\n164it [00:00, 668.39it/s]\n\n 0%| | 0/164 [00:00<?, ?it/s]\n 7%|\u258b | 12/164 [00:00<00:01, 119.22it/s]\n 15%|\u2588\u258d | 24/164 [00:00<00:01, 93.50it/s] \n 36%|\u2588\u2588\u2588\u258c | 59/164 [00:00<00:00, 194.57it/s]\n 56%|\u2588\u2588\u2588\u2588\u2588\u258c | 92/164 [00:00<00:00, 242.69it/s]\n 72%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 118/164 [00:00<00:00, 160.03it/s]\n 85%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258d | 139/164 [00:00<00:00, 153.85it/s]\n 98%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258a| 160/164 [00:01<00:00, 147.30it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 164/164 [00:01<00:00, 93.32it/s] \n", | |
| "n_tasks": 164, | |
| "pass_at_1_base": 0.5853658536585366, | |
| "pass_at_1_plus": 0.5304878048780488, | |
| "gen_elapsed_s": 5.479835748672485, | |
| "mean_completion_tokens": 179.77439024390245 | |
| } | |
| } | |
| }, | |
| "mbpp": { | |
| "dataset": "mbpp", | |
| "n_problems": 378, | |
| "max_new_tokens": 768, | |
| "greedy": true, | |
| "modes": { | |
| "chat": { | |
| "elapsed_s": 10.681174039840698, | |
| "returncode": 0, | |
| "stdout_tail": "Load from ground-truth from /root/.cache/evalplus/ee43ecabebf20deef4bb776a405ac5b1.pkl\nReading samples...\nmbpp (base tests)\npass@1:\t0.664\nmbpp+ (base + extra tests)\npass@1:\t0.587\n", | |
| "stderr_tail": "\u258b | 63/378 [00:00<00:02, 131.64it/s]\n 21%|\u2588\u2588 | 80/378 [00:02<00:12, 24.13it/s] \n 32%|\u2588\u2588\u2588\u258f | 120/378 [00:03<00:07, 35.23it/s]\n 39%|\u2588\u2588\u2588\u2589 | 149/378 [00:03<00:04, 48.43it/s]\n 47%|\u2588\u2588\u2588\u2588\u258b | 177/378 [00:03<00:03, 62.97it/s]\n 53%|\u2588\u2588\u2588\u2588\u2588\u258e | 199/378 [00:03<00:02, 77.73it/s]\n 57%|\u2588\u2588\u2588\u2588\u2588\u258b | 215/378 [00:03<00:01, 82.10it/s]\n 62%|\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 233/378 [00:03<00:01, 90.95it/s]\n 67%|\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 253/378 [00:04<00:01, 94.99it/s]\n 74%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258e | 278/378 [00:04<00:00, 120.51it/s]\n 78%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258a | 295/378 [00:04<00:00, 118.38it/s]\n 84%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258e | 316/378 [00:04<00:00, 124.30it/s]\n 90%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 | 342/378 [00:04<00:00, 147.75it/s]\n 95%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c| 360/378 [00:04<00:00, 148.80it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2589| 377/378 [00:05<00:00, 49.62it/s] \n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:06<00:00, 57.89it/s]\n", | |
| "n_tasks": 378, | |
| "pass_at_1_base": 0.6640211640211641, | |
| "pass_at_1_plus": 0.5952380952380952, | |
| "gen_elapsed_s": 11.919951915740967, | |
| "mean_completion_tokens": 39.507936507936506 | |
| } | |
| } | |
| }, | |
| "humanevalfix": { | |
| "dataset": "bigcode/humanevalpack:python", | |
| "n": 164, | |
| "pass_at_1": 0.4268292682926829, | |
| "greedy": true, | |
| "max_new_tokens": 1024, | |
| "by_bug_type": { | |
| "excess logic": "10/31", | |
| "function misuse": "5/8", | |
| "missing logic": "14/33", | |
| "operator misuse": "11/25", | |
| "value misuse": "21/44", | |
| "variable misuse": "9/23" | |
| } | |
| } | |
| }, | |
| "elapsed_s": 76.35423040390015 | |
| } |