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/agentbench_baseline_instruct_test.json from SamJoshua/stacy: direct link, hf CLI and curl.
- Browser
- Download file 1.81 kB
-
https://huggingface.co/SamJoshua/stacy/resolve/main/eval/agentbench_baseline_instruct_test.json
- Command line
-
hf download hf://SamJoshua/stacy/eval/agentbench_baseline_instruct_test.json
-
curl -L -o agentbench_baseline_instruct_test.json https://huggingface.co/SamJoshua/stacy/resolve/main/eval/agentbench_baseline_instruct_test.json
1.81 kB
| { | |
| "name": "agentbench_baseline_instruct_test", | |
| "model": "/models/ckpts/grpo_instruct/final", | |
| "suite": "test_v1", | |
| "n_tasks": 94, | |
| "evaluated_at": "2026-10-30", | |
| "meta": { | |
| "temperature": 0.0, | |
| "max_steps": 16, | |
| "seed": 0, | |
| "concurrency": 2, | |
| "gpu_mem": 0.28, | |
| "artifacts": "/models/runs/agentbench/baseline_instruct__*__test.json", | |
| "log": "/models/runs/agentbench/baseline_instruct_test.log" | |
| }, | |
| "variants": { | |
| "notools": { | |
| "success": 0.202, | |
| "success_solve": 0.107, | |
| "recognized_blocked": 1.0, | |
| "hidden_pass": 0.107, | |
| "false_completion": 0.609, | |
| "security_violations": 0, | |
| "median_latency_s": 0.189, | |
| "p95_latency_s": 5.687, | |
| "tokens_per_success": 2341 | |
| }, | |
| "old": { | |
| "success": 0.106, | |
| "success_solve": 0.06, | |
| "recognized_blocked": 0.0, | |
| "hidden_pass": 0.06, | |
| "false_completion": 0.887, | |
| "security_violations": 1, | |
| "median_latency_s": 1.962, | |
| "p95_latency_s": 4.814, | |
| "tokens_per_success": 5880 | |
| }, | |
| "new": { | |
| "success": 0.053, | |
| "success_solve": 0.048, | |
| "recognized_blocked": 0.0, | |
| "hidden_pass": 0.048, | |
| "false_completion": 0.75, | |
| "security_violations": 1, | |
| "median_latency_s": 6.324, | |
| "p95_latency_s": 15.464, | |
| "tokens_per_success": 351088, | |
| "note": "tokens_per_success inflated by only 5 successes; mean_tokens ~6k/task" | |
| } | |
| }, | |
| "dev_reference_agentA_new": { | |
| "model": "/models/ckpts/agent_A/final", | |
| "suite": "dev_v1", | |
| "n_tasks": 46, | |
| "success": 0.478, | |
| "false_completion": 0.292, | |
| "hidden_pass_solve": 0.429, | |
| "artifact": "/models/runs/agentbench/agentA__new__dev.json" | |
| }, | |
| "pending": { | |
| "agentA_test_suite": "blocked: GPU occupied by pid 1152926 (~86 GiB); rerun when free" | |
| } | |
| } | |