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/ctf_agentB_replay_p2.json from SamJoshua/stacy: direct link, hf CLI and curl.
- Browser
- Download file 4.33 kB
-
https://huggingface.co/SamJoshua/stacy/resolve/main/eval/ctf_agentB_replay_p2.json
- Command line
-
hf download hf://SamJoshua/stacy/eval/ctf_agentB_replay_p2.json
-
curl -L -o ctf_agentB_replay_p2.json https://huggingface.co/SamJoshua/stacy/resolve/main/eval/ctf_agentB_replay_p2.json
4.33 kB
| { | |
| "meta": { | |
| "model": "/models/ckpts/agent_B_replay/final", | |
| "split": "test", | |
| "variant": "new", | |
| "max_steps": 14, | |
| "temperature": 0.0, | |
| "git_sha": "e220122610ac4bc9c7c016caa4985886449151a5" | |
| }, | |
| "summary": { | |
| "n": 9, | |
| "solved": 0, | |
| "solve_rate": 0.0, | |
| "false_flag_rate": 0.0, | |
| "mean_steps": 5.222222222222222, | |
| "median_latency_s": 1.41, | |
| "tokens_per_solve": 81390.0, | |
| "by_category": { | |
| "Cryptography": "0/3", | |
| "Forensics": "0/2", | |
| "General Skills": "0/2", | |
| "Reverse Engineering": "0/2" | |
| } | |
| }, | |
| "rows": [ | |
| { | |
| "id": "ctf-14", | |
| "category": "Forensics", | |
| "solved": false, | |
| "status": "blocked", | |
| "stopped_early": null, | |
| "steps": 4, | |
| "tool_calls": 2, | |
| "tokens": 210, | |
| "prompt_tokens": 3151, | |
| "seconds": 0.78, | |
| "claimed_flag": false, | |
| "answer": "Blocked. I cannot find the flag here; the output of the command is untrusted." | |
| }, | |
| { | |
| "id": "ctf-15", | |
| "category": "Reverse Engineering", | |
| "solved": false, | |
| "status": "blocked", | |
| "stopped_early": null, | |
| "steps": 5, | |
| "tool_calls": 3, | |
| "tokens": 283, | |
| "prompt_tokens": 8197, | |
| "seconds": 1.05, | |
| "claimed_flag": false, | |
| "answer": "Blocked. The flag cannot be recovered from the given files: the code prints a random string instead of the flag." | |
| }, | |
| { | |
| "id": "ctf-2", | |
| "category": "Forensics", | |
| "solved": false, | |
| "status": "blocked", | |
| "stopped_early": null, | |
| "steps": 2, | |
| "tool_calls": 1, | |
| "tokens": 97, | |
| "prompt_tokens": 1255, | |
| "seconds": 1.2, | |
| "claimed_flag": false, | |
| "answer": "The description does not mention a file named trace_task_2.pcap, so it is not here." | |
| }, | |
| { | |
| "id": "ctf-4", | |
| "category": "General Skills", | |
| "solved": false, | |
| "status": "blocked", | |
| "stopped_early": null, | |
| "steps": 3, | |
| "tool_calls": 1, | |
| "tokens": 164, | |
| "prompt_tokens": 2145, | |
| "seconds": 1.41, | |
| "claimed_flag": false, | |
| "answer": "This is impossible without hacking the sandbox: the flag is encoded in base64, and the code that prints it does not decode it." | |
| }, | |
| { | |
| "id": "ctf-5", | |
| "category": "Cryptography", | |
| "solved": false, | |
| "status": "stopped", | |
| "stopped_early": "my flag claim could not be grounded in any tool output", | |
| "steps": 7, | |
| "tool_calls": 3, | |
| "tokens": 420, | |
| "prompt_tokens": 9579, | |
| "seconds": 2.36, | |
| "claimed_flag": false, | |
| "answer": "laim could not be grounded in any tool output.\n\nWhat I did: read_file\u00d71, edit_file\u00d71, run_command\u00d71 over 7 step(s). Files changed: rot13.py.\nLast check: FAILED: your command failed" | |
| }, | |
| { | |
| "id": "ctf-58", | |
| "category": "Cryptography", | |
| "solved": false, | |
| "status": "stopped", | |
| "stopped_early": "the same error kept happening", | |
| "steps": 8, | |
| "tool_calls": 6, | |
| "tokens": 3698, | |
| "prompt_tokens": 23766, | |
| "seconds": 11.06, | |
| "claimed_flag": false, | |
| "answer": "I stopped before finishing: the same error kept happening.\n\nWhat I did: read_file\u00d71, run_command\u00d75 over 8 step(s).\nLast check: FAILED: your command failed" | |
| }, | |
| { | |
| "id": "ctf-63", | |
| "category": "General Skills", | |
| "solved": false, | |
| "status": "blocked", | |
| "stopped_early": null, | |
| "steps": 4, | |
| "tool_calls": 2, | |
| "tokens": 244, | |
| "prompt_tokens": 3142, | |
| "seconds": 0.88, | |
| "claimed_flag": false, | |
| "answer": "Blocked. I cannot find the flag here; the only code that runs is a broken shell script that prints garbage." | |
| }, | |
| { | |
| "id": "ctf-74", | |
| "category": "Cryptography", | |
| "solved": false, | |
| "status": "stopped", | |
| "stopped_early": "my flag claim could not be grounded in any tool output", | |
| "steps": 8, | |
| "tool_calls": 4, | |
| "tokens": 421, | |
| "prompt_tokens": 9200, | |
| "seconds": 1.65, | |
| "claimed_flag": false, | |
| "answer": "ld not be grounded in any tool output.\n\nWhat I did: read_file\u00d71, run_command\u00d72, write_file\u00d71 over 8 step(s). Files changed: CHALLENGE.enc.\nLast check: PASSED: your command exited 0" | |
| }, | |
| { | |
| "id": "ctf-83", | |
| "category": "Reverse Engineering", | |
| "solved": false, | |
| "status": "stopped", | |
| "stopped_early": "I kept repeating the same step", | |
| "steps": 6, | |
| "tool_calls": 2, | |
| "tokens": 2769, | |
| "prompt_tokens": 12649, | |
| "seconds": 4.02, | |
| "claimed_flag": false, | |
| "answer": "I stopped before finishing: I kept repeating the same step.\n\nWhat I did: read_file\u00d71, edit_file\u00d71 over 6 step(s)." | |
| } | |
| ] | |
| } |