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
File size: 4,666 Bytes
2832cad | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | {
"name": "cmp_ctf_sft60_strict_p2",
"model": "/models/ckpts/ctf_sft60_strict/final",
"meta": {
"timestamp": "2026-11-03T09:31:57+0530",
"git_sha": "251b3740fe456dbeb559d512f12832ae245975af",
"python": "3.13.14",
"platform": "Linux-7.0.0-38-generic-x86_64-with-glibc2.39",
"argv": [
"scripts/enterprise/eval.py",
"--model",
"/models/ckpts/ctf_sft60_strict/final",
"--name",
"cmp_ctf_sft60_strict_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.8457369804382324,
"returncode": 0,
"stdout_tail": "Load from ground-truth from /root/.cache/evalplus/fe585eb4df8c88d844eeb463ea4d0302.pkl\nReading samples...\nhumaneval (base tests)\npass@1:\t0.689\nhumaneval+ (base + extra tests)\npass@1:\t0.628\n",
"stderr_tail": "\n0it [00:00, ?it/s]\n1it [00:00, 4.76it/s]\n164it [00:00, 765.35it/s]\n\n 0%| | 0/164 [00:00<?, ?it/s]\n 10%|\u2589 | 16/164 [00:00<00:01, 75.88it/s]\n 39%|\u2588\u2588\u2588\u2589 | 64/164 [00:00<00:00, 233.63it/s]\n 59%|\u2588\u2588\u2588\u2588\u2588\u258a | 96/164 [00:00<00:00, 263.07it/s]\n 77%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 127/164 [00:00<00:00, 152.82it/s]\n 96%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c| 157/164 [00:00<00:00, 168.35it/s]\n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 164/164 [00:01<00:00, 97.67it/s] \n",
"n_tasks": 164,
"pass_at_1_base": 0.6890243902439024,
"pass_at_1_plus": 0.6341463414634146,
"gen_elapsed_s": 5.370646715164185,
"mean_completion_tokens": 179.6219512195122
}
}
},
"mbpp": {
"dataset": "mbpp",
"n_problems": 378,
"max_new_tokens": 768,
"greedy": true,
"modes": {
"chat": {
"elapsed_s": 9.455339908599854,
"returncode": 0,
"stdout_tail": "Load from ground-truth from /root/.cache/evalplus/ee43ecabebf20deef4bb776a405ac5b1.pkl\nReading samples...\nmbpp (base tests)\npass@1:\t0.728\nmbpp+ (base + extra tests)\npass@1:\t0.630\n",
"stderr_tail": "| | 1/378 [00:00<00:43, 8.71it/s]\n 8%|\u258a | 30/378 [00:00<00:02, 151.24it/s]\n 16%|\u2588\u258c | 59/378 [00:00<00:01, 208.31it/s]\n 21%|\u2588\u2588\u258f | 81/378 [00:00<00:01, 200.14it/s]\n 27%|\u2588\u2588\u258b | 102/378 [00:02<00:08, 31.06it/s]\n 31%|\u2588\u2588\u2588\u258f | 119/378 [00:02<00:08, 30.83it/s]\n 39%|\u2588\u2588\u2588\u2589 | 148/378 [00:02<00:04, 47.72it/s]\n 47%|\u2588\u2588\u2588\u2588\u258b | 177/378 [00:03<00:02, 67.37it/s]\n 54%|\u2588\u2588\u2588\u2588\u2588\u258d | 206/378 [00:03<00:01, 89.12it/s]\n 62%|\u2588\u2588\u2588\u2588\u2588\u2588\u258f | 234/378 [00:03<00:01, 111.93it/s]\n 67%|\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 255/378 [00:03<00:01, 112.47it/s]\n 77%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258b | 290/378 [00:03<00:00, 143.57it/s]\n 84%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258d | 319/378 [00:03<00:00, 158.46it/s]\n 92%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f| 348/378 [00:03<00:00, 171.29it/s]\n 99%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2589| 376/378 [00:04<00:00, 93.62it/s] \n100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 378/378 [00:05<00:00, 74.36it/s]\n",
"n_tasks": 378,
"pass_at_1_base": 0.7275132275132276,
"pass_at_1_plus": 0.6375661375661376,
"gen_elapsed_s": 10.802817583084106,
"mean_completion_tokens": 50.07936507936508
}
}
},
"humanevalfix": {
"dataset": "bigcode/humanevalpack:python",
"n": 164,
"pass_at_1": 0.5426829268292683,
"greedy": true,
"max_new_tokens": 1024,
"by_bug_type": {
"excess logic": "15/31",
"function misuse": "5/8",
"missing logic": "17/33",
"operator misuse": "16/25",
"value misuse": "24/44",
"variable misuse": "12/23"
}
}
},
"elapsed_s": 69.32885146141052
} |