Instructions to use runtime-contracts/qwen3-8b-knapsack-lora-persistent-seed1337 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use runtime-contracts/qwen3-8b-knapsack-lora-persistent-seed1337 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-8B") model = PeftModel.from_pretrained(base_model, "runtime-contracts/qwen3-8b-knapsack-lora-persistent-seed1337") - Transformers
How to use runtime-contracts/qwen3-8b-knapsack-lora-persistent-seed1337 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="runtime-contracts/qwen3-8b-knapsack-lora-persistent-seed1337") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("runtime-contracts/qwen3-8b-knapsack-lora-persistent-seed1337", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use runtime-contracts/qwen3-8b-knapsack-lora-persistent-seed1337 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "runtime-contracts/qwen3-8b-knapsack-lora-persistent-seed1337" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "runtime-contracts/qwen3-8b-knapsack-lora-persistent-seed1337", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/runtime-contracts/qwen3-8b-knapsack-lora-persistent-seed1337
- SGLang
How to use runtime-contracts/qwen3-8b-knapsack-lora-persistent-seed1337 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 "runtime-contracts/qwen3-8b-knapsack-lora-persistent-seed1337" \ --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": "runtime-contracts/qwen3-8b-knapsack-lora-persistent-seed1337", "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 "runtime-contracts/qwen3-8b-knapsack-lora-persistent-seed1337" \ --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": "runtime-contracts/qwen3-8b-knapsack-lora-persistent-seed1337", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use runtime-contracts/qwen3-8b-knapsack-lora-persistent-seed1337 with Docker Model Runner:
docker model run hf.co/runtime-contracts/qwen3-8b-knapsack-lora-persistent-seed1337
Update card: license, paper reference
Browse files
README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
library_name: peft
|
| 3 |
base_model: Qwen/Qwen3-8B
|
| 4 |
tags:
|
|
@@ -9,7 +10,7 @@ pipeline_tag: text-generation
|
|
| 9 |
|
| 10 |
# qwen3-8b-knapsack-lora-persistent-seed1337
|
| 11 |
|
| 12 |
-
Supplementary release for
|
| 13 |
one of six LoRA adapters (persistent/stateless training regime x 3 seeds)
|
| 14 |
fine-tuned on the Opaque Knapsack agentic task.
|
| 15 |
|
|
@@ -41,5 +42,8 @@ LoRA adapter, 4-bit NF4 quantized base:
|
|
| 41 |
|
| 42 |
## Provenance
|
| 43 |
|
| 44 |
-
Released alongside
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
library_name: peft
|
| 4 |
base_model: Qwen/Qwen3-8B
|
| 5 |
tags:
|
|
|
|
| 10 |
|
| 11 |
# qwen3-8b-knapsack-lora-persistent-seed1337
|
| 12 |
|
| 13 |
+
Supplementary release for the paper *Evaluating Agents Across Runtime Contracts: When Mismatch Costs Efficiency or Quality* (IAEval 2026, the NeurIPS 2026 Workshop on Evaluation of Interactive Agents). This is
|
| 14 |
one of six LoRA adapters (persistent/stateless training regime x 3 seeds)
|
| 15 |
fine-tuned on the Opaque Knapsack agentic task.
|
| 16 |
|
|
|
|
| 42 |
|
| 43 |
## Provenance
|
| 44 |
|
| 45 |
+
Released alongside the paper *Evaluating Agents Across Runtime Contracts: When Mismatch Costs Efficiency or Quality* (IAEval 2026, the NeurIPS 2026 Workshop on Evaluation of Interactive Agents), to reproduce its reported results.
|
| 46 |
+
|
| 47 |
+
## License
|
| 48 |
+
|
| 49 |
+
Apache License 2.0. The base model (Qwen3-8B) is also released under Apache 2.0.
|