Text Generation
PEFT
Safetensors
Transformers
English
carl
coherence-aware-rl
grpo
vlm
vision-grpo
gui-grounding
lora
trl
conversational
Instructions to use wheattoast11/OmniCoder-9B-Zero-Phase2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use wheattoast11/OmniCoder-9B-Zero-Phase2 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Tesslate/OmniCoder-9B") model = PeftModel.from_pretrained(base_model, "wheattoast11/OmniCoder-9B-Zero-Phase2") - Transformers
How to use wheattoast11/OmniCoder-9B-Zero-Phase2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="wheattoast11/OmniCoder-9B-Zero-Phase2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("wheattoast11/OmniCoder-9B-Zero-Phase2", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use wheattoast11/OmniCoder-9B-Zero-Phase2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wheattoast11/OmniCoder-9B-Zero-Phase2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wheattoast11/OmniCoder-9B-Zero-Phase2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/wheattoast11/OmniCoder-9B-Zero-Phase2
- SGLang
How to use wheattoast11/OmniCoder-9B-Zero-Phase2 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 "wheattoast11/OmniCoder-9B-Zero-Phase2" \ --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": "wheattoast11/OmniCoder-9B-Zero-Phase2", "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 "wheattoast11/OmniCoder-9B-Zero-Phase2" \ --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": "wheattoast11/OmniCoder-9B-Zero-Phase2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use wheattoast11/OmniCoder-9B-Zero-Phase2 with Docker Model Runner:
docker model run hf.co/wheattoast11/OmniCoder-9B-Zero-Phase2
Model card: CARL Phase 1' VLM with eval results, phase transition data, Zenodo DOIs
Browse files
README.md
CHANGED
|
@@ -2,210 +2,97 @@
|
|
| 2 |
base_model: Tesslate/OmniCoder-9B
|
| 3 |
library_name: peft
|
| 4 |
pipeline_tag: text-generation
|
|
|
|
|
|
|
|
|
|
| 5 |
tags:
|
| 6 |
-
-
|
|
|
|
| 7 |
- grpo
|
|
|
|
|
|
|
|
|
|
| 8 |
- lora
|
| 9 |
-
- trackio
|
| 10 |
-
- trackio:https://huggingface.co/spaces/wheattoast11/trackio
|
| 11 |
-
- transformers
|
| 12 |
- trl
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
|
| 15 |
-
#
|
| 16 |
-
|
| 17 |
-
<!-- Provide a quick summary of what the model is/does. -->
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
## Model Details
|
| 22 |
-
|
| 23 |
-
### Model Description
|
| 24 |
-
|
| 25 |
-
<!-- Provide a longer summary of what this model is. -->
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
- **Developed by:** [More Information Needed]
|
| 30 |
-
- **Funded by [optional]:** [More Information Needed]
|
| 31 |
-
- **Shared by [optional]:** [More Information Needed]
|
| 32 |
-
- **Model type:** [More Information Needed]
|
| 33 |
-
- **Language(s) (NLP):** [More Information Needed]
|
| 34 |
-
- **License:** [More Information Needed]
|
| 35 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 36 |
-
|
| 37 |
-
### Model Sources [optional]
|
| 38 |
-
|
| 39 |
-
<!-- Provide the basic links for the model. -->
|
| 40 |
-
|
| 41 |
-
- **Repository:** [More Information Needed]
|
| 42 |
-
- **Paper [optional]:** [More Information Needed]
|
| 43 |
-
- **Demo [optional]:** [More Information Needed]
|
| 44 |
-
|
| 45 |
-
## Uses
|
| 46 |
-
|
| 47 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 48 |
-
|
| 49 |
-
### Direct Use
|
| 50 |
-
|
| 51 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 52 |
-
|
| 53 |
-
[More Information Needed]
|
| 54 |
-
|
| 55 |
-
### Downstream Use [optional]
|
| 56 |
-
|
| 57 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 58 |
-
|
| 59 |
-
[More Information Needed]
|
| 60 |
-
|
| 61 |
-
### Out-of-Scope Use
|
| 62 |
-
|
| 63 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 64 |
-
|
| 65 |
-
[More Information Needed]
|
| 66 |
-
|
| 67 |
-
## Bias, Risks, and Limitations
|
| 68 |
-
|
| 69 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 70 |
-
|
| 71 |
-
[More Information Needed]
|
| 72 |
-
|
| 73 |
-
### Recommendations
|
| 74 |
-
|
| 75 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 76 |
-
|
| 77 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 78 |
-
|
| 79 |
-
## How to Get Started with the Model
|
| 80 |
-
|
| 81 |
-
Use the code below to get started with the model.
|
| 82 |
-
|
| 83 |
-
[More Information Needed]
|
| 84 |
-
|
| 85 |
-
## Training Details
|
| 86 |
-
|
| 87 |
-
### Training Data
|
| 88 |
-
|
| 89 |
-
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 90 |
-
|
| 91 |
-
[More Information Needed]
|
| 92 |
-
|
| 93 |
-
### Training Procedure
|
| 94 |
-
|
| 95 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 96 |
-
|
| 97 |
-
#### Preprocessing [optional]
|
| 98 |
-
|
| 99 |
-
[More Information Needed]
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
#### Training Hyperparameters
|
| 103 |
-
|
| 104 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 105 |
-
|
| 106 |
-
#### Speeds, Sizes, Times [optional]
|
| 107 |
-
|
| 108 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 109 |
-
|
| 110 |
-
[More Information Needed]
|
| 111 |
-
|
| 112 |
-
## Evaluation
|
| 113 |
-
|
| 114 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 115 |
-
|
| 116 |
-
### Testing Data, Factors & Metrics
|
| 117 |
-
|
| 118 |
-
#### Testing Data
|
| 119 |
-
|
| 120 |
-
<!-- This should link to a Dataset Card if possible. -->
|
| 121 |
-
|
| 122 |
-
[More Information Needed]
|
| 123 |
-
|
| 124 |
-
#### Factors
|
| 125 |
-
|
| 126 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 127 |
-
|
| 128 |
-
[More Information Needed]
|
| 129 |
-
|
| 130 |
-
#### Metrics
|
| 131 |
-
|
| 132 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 133 |
-
|
| 134 |
-
[More Information Needed]
|
| 135 |
-
|
| 136 |
-
### Results
|
| 137 |
-
|
| 138 |
-
[More Information Needed]
|
| 139 |
-
|
| 140 |
-
#### Summary
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
## Model Examination [optional]
|
| 145 |
-
|
| 146 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 147 |
-
|
| 148 |
-
[More Information Needed]
|
| 149 |
-
|
| 150 |
-
## Environmental Impact
|
| 151 |
-
|
| 152 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 153 |
-
|
| 154 |
-
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 155 |
-
|
| 156 |
-
- **Hardware Type:** [More Information Needed]
|
| 157 |
-
- **Hours used:** [More Information Needed]
|
| 158 |
-
- **Cloud Provider:** [More Information Needed]
|
| 159 |
-
- **Compute Region:** [More Information Needed]
|
| 160 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 161 |
-
|
| 162 |
-
## Technical Specifications [optional]
|
| 163 |
-
|
| 164 |
-
### Model Architecture and Objective
|
| 165 |
-
|
| 166 |
-
[More Information Needed]
|
| 167 |
-
|
| 168 |
-
### Compute Infrastructure
|
| 169 |
-
|
| 170 |
-
[More Information Needed]
|
| 171 |
-
|
| 172 |
-
#### Hardware
|
| 173 |
|
| 174 |
-
|
| 175 |
|
| 176 |
-
|
| 177 |
|
| 178 |
-
|
| 179 |
|
| 180 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 181 |
|
| 182 |
-
|
| 183 |
|
| 184 |
-
**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 185 |
|
| 186 |
-
|
| 187 |
|
| 188 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 189 |
|
| 190 |
-
|
| 191 |
|
| 192 |
-
##
|
| 193 |
|
| 194 |
-
|
|
|
|
|
|
|
| 195 |
|
| 196 |
-
|
| 197 |
|
| 198 |
-
|
|
|
|
|
|
|
| 199 |
|
| 200 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 201 |
|
| 202 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 203 |
|
| 204 |
-
|
| 205 |
|
| 206 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 207 |
|
| 208 |
-
|
| 209 |
-
### Framework versions
|
| 210 |
|
| 211 |
-
|
|
|
|
| 2 |
base_model: Tesslate/OmniCoder-9B
|
| 3 |
library_name: peft
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
+
license: apache-2.0
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
tags:
|
| 9 |
+
- carl
|
| 10 |
+
- coherence-aware-rl
|
| 11 |
- grpo
|
| 12 |
+
- vlm
|
| 13 |
+
- vision-grpo
|
| 14 |
+
- gui-grounding
|
| 15 |
- lora
|
|
|
|
|
|
|
|
|
|
| 16 |
- trl
|
| 17 |
+
- transformers
|
| 18 |
+
datasets:
|
| 19 |
+
- wheattoast11/zero-rl-tool-calling-data
|
| 20 |
---
|
| 21 |
|
| 22 |
+
# OmniCoder-9B-Zero-Phase2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
+
**CARL Phase 1' — VLM grounding checkpoint. EVAL: PASS (94.6% click accuracy).**
|
| 25 |
|
| 26 |
+
A LoRA adapter trained with vision GRPO for GUI grounding. The model understands screenshots and produces structured coordinate output for click targets.
|
| 27 |
|
| 28 |
+
## Results
|
| 29 |
|
| 30 |
+
| Metric | Value |
|
| 31 |
+
|--------|-------|
|
| 32 |
+
| Click accuracy | **94.61%** |
|
| 33 |
+
| Format compliance | **100%** |
|
| 34 |
+
| Eval samples | 167 held-out |
|
| 35 |
+
| Status | **PASS** |
|
| 36 |
|
| 37 |
+
## Training
|
| 38 |
|
| 39 |
+
- **Method:** Vision GRPO with CARL cascade rewards
|
| 40 |
+
- **Base model:** [Tesslate/OmniCoder-9B](https://huggingface.co/Tesslate/OmniCoder-9B) (Qwen3.5-9B VLM)
|
| 41 |
+
- **SFT substrate:** [wheattoast11/OmniCoder-9B-Zero-Phase2-Vision-SFT](https://huggingface.co/wheattoast11/OmniCoder-9B-Zero-Phase2-Vision-SFT)
|
| 42 |
+
- **Steps:** 500 GRPO steps
|
| 43 |
+
- **Hardware:** 1x L40S 48GB, bf16, LoRA r=64
|
| 44 |
+
- **Dataset:** [wheattoast11/grounding-with-images](https://huggingface.co/datasets/wheattoast11/grounding-with-images) (20K samples)
|
| 45 |
|
| 46 |
+
### Phase Transition Observed
|
| 47 |
|
| 48 |
+
During SFT, the model exhibited a first-order phase transition:
|
| 49 |
+
- Steps 0-10: Baseline (3% accuracy, entropy 1.0)
|
| 50 |
+
- Steps 10-20: Melting (entropy spikes to 9.3)
|
| 51 |
+
- Steps 20-25: **Transition** (accuracy jumps 57 points in 5 steps)
|
| 52 |
+
- Steps 25-35: Crystallization (99% accuracy, entropy 0.4)
|
| 53 |
+
- Steps 35-46: Converged (99.3%, entropy 0.12)
|
| 54 |
|
| 55 |
+
Consistent with Kuramoto synchronization in coupled oscillator systems.
|
| 56 |
|
| 57 |
+
## Theoretical Foundation
|
| 58 |
|
| 59 |
+
1. **Bounded Informational Time Crystals** — DOI: [10.5281/zenodo.18906944](https://doi.org/10.5281/zenodo.18906944)
|
| 60 |
+
2. **Material Reality** — DOI: [10.5281/zenodo.18992029](https://doi.org/10.5281/zenodo.18992029)
|
| 61 |
+
3. **Semantic Realizability** — DOI: [10.5281/zenodo.18992031](https://doi.org/10.5281/zenodo.18992031)
|
| 62 |
|
| 63 |
+
## Usage
|
| 64 |
|
| 65 |
+
```python
|
| 66 |
+
from transformers import AutoModelForImageTextToText, AutoProcessor
|
| 67 |
+
from peft import PeftModel
|
| 68 |
|
| 69 |
+
base = AutoModelForImageTextToText.from_pretrained(
|
| 70 |
+
"Tesslate/OmniCoder-9B",
|
| 71 |
+
torch_dtype="bfloat16",
|
| 72 |
+
device_map="cuda:0",
|
| 73 |
+
)
|
| 74 |
+
model = PeftModel.from_pretrained(base, "wheattoast11/OmniCoder-9B-Zero-Phase2")
|
| 75 |
+
model = model.merge_and_unload()
|
| 76 |
|
| 77 |
+
processor = AutoProcessor.from_pretrained(
|
| 78 |
+
"Tesslate/OmniCoder-9B",
|
| 79 |
+
min_pixels=256*28*28,
|
| 80 |
+
max_pixels=1280*28*28,
|
| 81 |
+
)
|
| 82 |
+
```
|
| 83 |
|
| 84 |
+
## Citation
|
| 85 |
|
| 86 |
+
```bibtex
|
| 87 |
+
@article{desai2026carl,
|
| 88 |
+
title = {Coherence-Aware Reinforcement Learning},
|
| 89 |
+
author = {Desai, Tej},
|
| 90 |
+
year = {2026},
|
| 91 |
+
url = {https://github.com/wheattoast11/carl},
|
| 92 |
+
note = {Intuition Labs LLC}
|
| 93 |
+
}
|
| 94 |
+
```
|
| 95 |
|
| 96 |
+
## License
|
|
|
|
| 97 |
|
| 98 |
+
Apache 2.0 — Intuition Labs LLC
|