Image-Text-to-Text
Transformers
Safetensors
inkling2_loop_patched
conversational
Mixture of Experts
inkling2_loop
gated-delta-rule
linear-attention
experimental
not-trained
custom_code
Instructions to use RESMP-DEV/Inkling-2-Mini-LinearAttention-GatedDelta-Patched with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RESMP-DEV/Inkling-2-Mini-LinearAttention-GatedDelta-Patched with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="RESMP-DEV/Inkling-2-Mini-LinearAttention-GatedDelta-Patched", trust_remote_code=True) 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForImageTextToText model = AutoModelForImageTextToText.from_pretrained("RESMP-DEV/Inkling-2-Mini-LinearAttention-GatedDelta-Patched", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use RESMP-DEV/Inkling-2-Mini-LinearAttention-GatedDelta-Patched with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RESMP-DEV/Inkling-2-Mini-LinearAttention-GatedDelta-Patched" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RESMP-DEV/Inkling-2-Mini-LinearAttention-GatedDelta-Patched", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/RESMP-DEV/Inkling-2-Mini-LinearAttention-GatedDelta-Patched
- SGLang
How to use RESMP-DEV/Inkling-2-Mini-LinearAttention-GatedDelta-Patched 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 "RESMP-DEV/Inkling-2-Mini-LinearAttention-GatedDelta-Patched" \ --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": "RESMP-DEV/Inkling-2-Mini-LinearAttention-GatedDelta-Patched", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "RESMP-DEV/Inkling-2-Mini-LinearAttention-GatedDelta-Patched" \ --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": "RESMP-DEV/Inkling-2-Mini-LinearAttention-GatedDelta-Patched", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use RESMP-DEV/Inkling-2-Mini-LinearAttention-GatedDelta-Patched with Docker Model Runner:
docker model run hf.co/RESMP-DEV/Inkling-2-Mini-LinearAttention-GatedDelta-Patched
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -198,6 +198,20 @@ that "the patch is on" is part of the objective instead of a side effect. The
|
|
| 198 |
harness in the producing repository implements exactly that as a gate-floor
|
| 199 |
term.
|
| 200 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 201 |
## Non-claims
|
| 202 |
|
| 203 |
* No training step of any kind was run **on this checkpoint**. The parameters
|
|
|
|
| 198 |
harness in the producing repository implements exactly that as a gate-floor
|
| 199 |
term.
|
| 200 |
|
| 201 |
+
**On real pretraining text this patch recovers a tenth of its damage where its
|
| 202 |
+
sibling recovers half.** Repeating the measurement on document-disjoint
|
| 203 |
+
`HuggingFaceFW/fineweb-edu`, with a fresh 512-token window for every step and a
|
| 204 |
+
held-out document set, at a fixed budget of eight 512-token steps (4096 tokens):
|
| 205 |
+
this artifact starts 0.2694 nats above the base checkpoint plus LoRA adapters,
|
| 206 |
+
2.4334 against 2.1640, and heals to 2.4062, which is 10 percent. The latent-KV
|
| 207 |
+
MLA retrofit on layers 11 and 17 starts 0.0663 nats above the same control and
|
| 208 |
+
heals to 2.1986, which is 48 percent. The difference is the gate again: the
|
| 209 |
+
patch gradient norm here is 0.034 against 0.983 for the MLA, 29 times smaller,
|
| 210 |
+
because a zero gate multiplies the gradient that would reach this patch's own
|
| 211 |
+
projections. For this artifact the gate-floor term is not optional, and the
|
| 212 |
+
first few thousand tokens of a real run are better treated as a gate-opening
|
| 213 |
+
phase than as a healing phase.
|
| 214 |
+
|
| 215 |
## Non-claims
|
| 216 |
|
| 217 |
* No training step of any kind was run **on this checkpoint**. The parameters
|