Instructions to use PIPer-icml/PIPer-8B-SFT-only with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PIPer-icml/PIPer-8B-SFT-only with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="PIPer-icml/PIPer-8B-SFT-only") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("PIPer-icml/PIPer-8B-SFT-only") model = AutoModelForCausalLM.from_pretrained("PIPer-icml/PIPer-8B-SFT-only") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use PIPer-icml/PIPer-8B-SFT-only with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PIPer-icml/PIPer-8B-SFT-only" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PIPer-icml/PIPer-8B-SFT-only", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/PIPer-icml/PIPer-8B-SFT-only
- SGLang
How to use PIPer-icml/PIPer-8B-SFT-only 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 "PIPer-icml/PIPer-8B-SFT-only" \ --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": "PIPer-icml/PIPer-8B-SFT-only", "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 "PIPer-icml/PIPer-8B-SFT-only" \ --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": "PIPer-icml/PIPer-8B-SFT-only", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use PIPer-icml/PIPer-8B-SFT-only with Docker Model Runner:
docker model run hf.co/PIPer-icml/PIPer-8B-SFT-only
๐ PIPer: On-Device Environment Setup via Online Reinforcement Learning
Democratizing environment setup with on-device sized models that match the performance of much larger proprietary systems
๐ฏ Overview
Environment setupโthe process of configuring systems to work with specific software projectsโremains a persistent challenge in software engineering. PIPer addresses this by training specialized on-device models that can automatically generate correct Bash scripts for environment configuration.
Our approach combines:
- ๐ Supervised Fine-Tuning (SFT) with executable scripts from larger models
- ๐ฏ Reinforcement Learning with Verifiable Rewards (RLVR) using lightweight proxy LLM-reward
๐ Key Results
| Model | Size | EnvBench avg@5 | Cost per 1M tokens |
|---|---|---|---|
| PIPer | 8B | 19.4 | $0.60 |
| GPT-4o | - | 19.4 | $15.00 |
| Qwen3-32B | 32B | 16.2 | $2.00 |
| Qwen3-8B | 8B | 2.6 | $0.60 |
๐ PIPer achieves 9ร improvement over its base model while matching GPT-4o performance at 25x lower cost
๐ฆ Available Artifacts
๐ค Model Checkpoints
| Model | Description | HuggingFace Link |
|---|---|---|
| ๐ PIPer (Full) | Complete SFT+RL trained model | PIPer-icml/PIPer-8B |
| ๐ฏ PIPer (RL-only) | RLVR checkpoint only | PIPer-icml/PIPer-8B-RL-only |
| ๐ PIPer (SFT-only) | Supervised fine-tuning only | PIPer-icml/PIPer-8B-SFT-only |
๐ Datasets
| Dataset | Description | HuggingFace Link |
|---|---|---|
| EnvBench Zero-shot RL | Training prompts and evaluation data | PIPer-icml/envbench-zeroshot-rl |
๐ Evaluation Benchmarks
| Benchmark | Description | Metric | Our Result |
|---|---|---|---|
| EnvBench-Python | 329 Python repositories | pass@5 | ๐ 27/329 |
| Repo2Run | 420 Python repositories | pass@5 | ๐ 103/420 |
| Terminal-Bench | 80 terminal tasks | pass@10 | 4/80 |
๐ Acknowledgments
- Built on top of EnvBench evaluation framework
- Uses VeRL for efficient RL training
- Leverages Qwen3 model family as base architecture
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
- Downloads last month
- 2
Model tree for PIPer-icml/PIPer-8B-SFT-only
Base model
PIPer-icml/Qwen3-8B-am