Text Generation
Transformers
Safetensors
PEFT
English
Chinese
qwen3_5
image-text-to-text
veriloop
veriloop-coder
code
coding-agent
software-engineering
repository-understanding
tool-use
lora
harness-engineering
evidence-binding
rollback
uncertainty-calibration
long-context
open-weights
conversational
Instructions to use veriloop-lab/veriloop-coder-e1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use veriloop-lab/veriloop-coder-e1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="veriloop-lab/veriloop-coder-e1") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("veriloop-lab/veriloop-coder-e1") model = AutoModelForImageTextToText.from_pretrained("veriloop-lab/veriloop-coder-e1") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - PEFT
How to use veriloop-lab/veriloop-coder-e1 with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use veriloop-lab/veriloop-coder-e1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "veriloop-lab/veriloop-coder-e1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "veriloop-lab/veriloop-coder-e1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/veriloop-lab/veriloop-coder-e1
- SGLang
How to use veriloop-lab/veriloop-coder-e1 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 "veriloop-lab/veriloop-coder-e1" \ --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": "veriloop-lab/veriloop-coder-e1", "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 "veriloop-lab/veriloop-coder-e1" \ --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": "veriloop-lab/veriloop-coder-e1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use veriloop-lab/veriloop-coder-e1 with Docker Model Runner:
docker model run hf.co/veriloop-lab/veriloop-coder-e1
Upload model/toolspec_training_manifest.json with huggingface_hub
Browse files
model/toolspec_training_manifest.json
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"adapter_exported": true,
|
| 3 |
+
"auto_lora_from_ia3": false,
|
| 4 |
+
"best_epoch": 4,
|
| 5 |
+
"best_quality_score": 0.46349615617231893,
|
| 6 |
+
"dataset_summary": {
|
| 7 |
+
"eval_size": 25,
|
| 8 |
+
"modes": [
|
| 9 |
+
"argument_shaping",
|
| 10 |
+
"harness_envelope",
|
| 11 |
+
"precondition_gating",
|
| 12 |
+
"receipt_and_validation",
|
| 13 |
+
"reverse_engineering",
|
| 14 |
+
"runtime_session",
|
| 15 |
+
"self_check_loop",
|
| 16 |
+
"tool_trigger",
|
| 17 |
+
"worktree_permission"
|
| 18 |
+
],
|
| 19 |
+
"tools": [
|
| 20 |
+
"apply_patch_bundle",
|
| 21 |
+
"browser_search",
|
| 22 |
+
"repo_reverse_engineer",
|
| 23 |
+
"run_ci_validation",
|
| 24 |
+
"self_check_repair_loop"
|
| 25 |
+
],
|
| 26 |
+
"train_size": 70
|
| 27 |
+
},
|
| 28 |
+
"epochs_completed": 5,
|
| 29 |
+
"eval_metrics": {
|
| 30 |
+
"adapter_exported": true,
|
| 31 |
+
"auto_lora_from_ia3": false,
|
| 32 |
+
"avg_binary_accuracy": 0.81,
|
| 33 |
+
"best_epoch": 4,
|
| 34 |
+
"best_quality_score": 0.46349615617231893,
|
| 35 |
+
"confirmation_required_accuracy": 0.8,
|
| 36 |
+
"count": 25,
|
| 37 |
+
"eval_batches": 25,
|
| 38 |
+
"eval_loss": 6.897225952148437,
|
| 39 |
+
"mode_accuracy": 0.56,
|
| 40 |
+
"peft_method": "lora_narrow",
|
| 41 |
+
"permission_bit_accuracy": 0.8545454545454545,
|
| 42 |
+
"precondition_ok_accuracy": 0.76,
|
| 43 |
+
"quality_score": 0.46349615617231893,
|
| 44 |
+
"rollback_supported_accuracy": 0.8,
|
| 45 |
+
"schema_ok_accuracy": 0.76,
|
| 46 |
+
"session_required_accuracy": 1.0,
|
| 47 |
+
"tool_accuracy": 0.44,
|
| 48 |
+
"trigger_accuracy": 0.76,
|
| 49 |
+
"used_peft": true,
|
| 50 |
+
"validator_required_accuracy": 0.8,
|
| 51 |
+
"worktree_required_accuracy": 0.8
|
| 52 |
+
},
|
| 53 |
+
"load_meta": {
|
| 54 |
+
"chosen_class": "AutoModelForCausalLM",
|
| 55 |
+
"hidden_size": 2048,
|
| 56 |
+
"quantization_mode": "4bit"
|
| 57 |
+
},
|
| 58 |
+
"mode_vocab": [
|
| 59 |
+
"tool_trigger",
|
| 60 |
+
"argument_shaping",
|
| 61 |
+
"precondition_gating",
|
| 62 |
+
"receipt_and_validation",
|
| 63 |
+
"harness_envelope",
|
| 64 |
+
"runtime_session",
|
| 65 |
+
"worktree_permission",
|
| 66 |
+
"self_check_loop",
|
| 67 |
+
"reverse_engineering"
|
| 68 |
+
],
|
| 69 |
+
"peft_method": "lora_narrow",
|
| 70 |
+
"requested_method": "lora_narrow",
|
| 71 |
+
"requested_target_modules": [
|
| 72 |
+
"request_normalizer",
|
| 73 |
+
"request_normalizer.adapter",
|
| 74 |
+
"runtime_harness_adapter",
|
| 75 |
+
"runtime_harness_adapter.bridge",
|
| 76 |
+
"tool_protocol_adapter",
|
| 77 |
+
"tool_protocol_adapter.bridge",
|
| 78 |
+
"toolspec_bridge",
|
| 79 |
+
"toolspec_bridge.adapter",
|
| 80 |
+
"toolspec_head",
|
| 81 |
+
"toolspec_head.param_schema_adapter",
|
| 82 |
+
"toolspec_head.postcondition_adapter",
|
| 83 |
+
"toolspec_head.precondition_adapter",
|
| 84 |
+
"toolspec_head.receipt_formatter",
|
| 85 |
+
"toolspec_head.trigger_gate",
|
| 86 |
+
"toolspec_head.validator_gate",
|
| 87 |
+
"validator_feedback_bridge",
|
| 88 |
+
"validator_feedback_bridge.adapter"
|
| 89 |
+
],
|
| 90 |
+
"resolved_target_modules": [
|
| 91 |
+
"surface_host.request_normalizer.adapter",
|
| 92 |
+
"surface_host.runtime_harness_adapter.bridge",
|
| 93 |
+
"surface_host.tool_protocol_adapter.bridge",
|
| 94 |
+
"surface_host.toolspec_bridge.adapter",
|
| 95 |
+
"surface_host.toolspec_head.param_schema_adapter",
|
| 96 |
+
"surface_host.toolspec_head.postcondition_adapter",
|
| 97 |
+
"surface_host.toolspec_head.precondition_adapter",
|
| 98 |
+
"surface_host.toolspec_head.receipt_formatter",
|
| 99 |
+
"surface_host.toolspec_head.trigger_gate",
|
| 100 |
+
"surface_host.toolspec_head.validator_gate",
|
| 101 |
+
"surface_host.validator_feedback_bridge.adapter"
|
| 102 |
+
],
|
| 103 |
+
"selected_target_modules": [
|
| 104 |
+
"request_normalizer",
|
| 105 |
+
"request_normalizer.adapter",
|
| 106 |
+
"runtime_harness_adapter",
|
| 107 |
+
"runtime_harness_adapter.bridge",
|
| 108 |
+
"tool_protocol_adapter",
|
| 109 |
+
"tool_protocol_adapter.bridge",
|
| 110 |
+
"toolspec_bridge",
|
| 111 |
+
"toolspec_bridge.adapter",
|
| 112 |
+
"toolspec_head",
|
| 113 |
+
"toolspec_head.param_schema_adapter",
|
| 114 |
+
"toolspec_head.postcondition_adapter",
|
| 115 |
+
"toolspec_head.precondition_adapter",
|
| 116 |
+
"toolspec_head.receipt_formatter",
|
| 117 |
+
"toolspec_head.trigger_gate",
|
| 118 |
+
"toolspec_head.validator_gate",
|
| 119 |
+
"validator_feedback_bridge",
|
| 120 |
+
"validator_feedback_bridge.adapter"
|
| 121 |
+
],
|
| 122 |
+
"status": "trained",
|
| 123 |
+
"tool_vocab": [
|
| 124 |
+
"apply_patch_bundle",
|
| 125 |
+
"browser_search",
|
| 126 |
+
"repo_reverse_engineer",
|
| 127 |
+
"run_ci_validation",
|
| 128 |
+
"self_check_repair_loop"
|
| 129 |
+
],
|
| 130 |
+
"train_metrics": {
|
| 131 |
+
"adapter_exported": true,
|
| 132 |
+
"auto_lora_from_ia3": false,
|
| 133 |
+
"best_epoch": 4,
|
| 134 |
+
"best_quality_score": 0.46349615617231893,
|
| 135 |
+
"epochs_completed": 5,
|
| 136 |
+
"loss": 0.42175399448190415,
|
| 137 |
+
"micro_batches": 70,
|
| 138 |
+
"micro_batches_total": 350,
|
| 139 |
+
"optimizer_steps": 5,
|
| 140 |
+
"optimizer_steps_total": 25,
|
| 141 |
+
"peft_method": "lora_narrow",
|
| 142 |
+
"used_peft": true
|
| 143 |
+
},
|
| 144 |
+
"unresolved_target_modules": [],
|
| 145 |
+
"used_peft": true
|
| 146 |
+
}
|