Instructions to use mlx-community/Inkling-2-Small-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/Inkling-2-Small-4bit with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("mlx-community/Inkling-2-Small-4bit") config = load_config("mlx-community/Inkling-2-Small-4bit") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use mlx-community/Inkling-2-Small-4bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "mlx-community/Inkling-2-Small-4bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "mlx-community/Inkling-2-Small-4bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use mlx-community/Inkling-2-Small-4bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "mlx-community/Inkling-2-Small-4bit"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default mlx-community/Inkling-2-Small-4bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use mlx-community/Inkling-2-Small-4bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "mlx-community/Inkling-2-Small-4bit"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "mlx-community/Inkling-2-Small-4bit" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Upload Inkling-2-Small-4bit
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +1 -0
- README.md +44 -0
- chat_template.jinja +126 -0
- config.json +145 -0
- model-00001-of-00097.safetensors +3 -0
- model-00002-of-00097.safetensors +3 -0
- model-00003-of-00097.safetensors +3 -0
- model-00004-of-00097.safetensors +3 -0
- model-00005-of-00097.safetensors +3 -0
- model-00006-of-00097.safetensors +3 -0
- model-00007-of-00097.safetensors +3 -0
- model-00008-of-00097.safetensors +3 -0
- model-00009-of-00097.safetensors +3 -0
- model-00010-of-00097.safetensors +3 -0
- model-00011-of-00097.safetensors +3 -0
- model-00012-of-00097.safetensors +3 -0
- model-00013-of-00097.safetensors +3 -0
- model-00014-of-00097.safetensors +3 -0
- model-00015-of-00097.safetensors +3 -0
- model-00016-of-00097.safetensors +3 -0
- model-00017-of-00097.safetensors +3 -0
- model-00018-of-00097.safetensors +3 -0
- model-00019-of-00097.safetensors +3 -0
- model-00020-of-00097.safetensors +3 -0
- model-00021-of-00097.safetensors +3 -0
- model-00022-of-00097.safetensors +3 -0
- model-00023-of-00097.safetensors +3 -0
- model-00024-of-00097.safetensors +3 -0
- model-00025-of-00097.safetensors +3 -0
- model-00026-of-00097.safetensors +3 -0
- model-00027-of-00097.safetensors +3 -0
- model-00028-of-00097.safetensors +3 -0
- model-00029-of-00097.safetensors +3 -0
- model-00030-of-00097.safetensors +3 -0
- model-00031-of-00097.safetensors +3 -0
- model-00032-of-00097.safetensors +3 -0
- model-00033-of-00097.safetensors +3 -0
- model-00034-of-00097.safetensors +3 -0
- model-00035-of-00097.safetensors +3 -0
- model-00036-of-00097.safetensors +3 -0
- model-00037-of-00097.safetensors +3 -0
- model-00038-of-00097.safetensors +3 -0
- model-00039-of-00097.safetensors +3 -0
- model-00040-of-00097.safetensors +3 -0
- model-00041-of-00097.safetensors +3 -0
- model-00042-of-00097.safetensors +3 -0
- model-00043-of-00097.safetensors +3 -0
- model-00044-of-00097.safetensors +3 -0
- model-00045-of-00097.safetensors +3 -0
- model-00046-of-00097.safetensors +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
license_link: https://www.apache.org/licenses/LICENSE-2.0
|
| 4 |
+
library_name: mlx
|
| 5 |
+
pipeline_tag: image-text-to-text
|
| 6 |
+
base_model: thinkingmachines/Inkling-2-Small
|
| 7 |
+
tags:
|
| 8 |
+
- moe
|
| 9 |
+
- mlx
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# mlx-community/Inkling-2-Small-4bit
|
| 13 |
+
|
| 14 |
+
This model [mlx-community/Inkling-2-Small-4bit](https://huggingface.co/mlx-community/Inkling-2-Small-4bit) was converted to MLX format from [thinkingmachines/Inkling-2-Small](https://huggingface.co/thinkingmachines/Inkling-2-Small) using mlx-lm with [ml-explore/mlx-lm#2061](https://github.com/ml-explore/mlx-lm/pull/2061). Refer to the [original model card](https://huggingface.co/thinkingmachines/Inkling-2-Small) for more details on the model.
|
| 15 |
+
|
| 16 |
+
It takes text and image input. The vision tower is included. The DSpark draft is not included.
|
| 17 |
+
|
| 18 |
+
The routed experts keep the original quantization. They are NVFP4 with a per-expert global scale in layers 0 to 39 and MXFP8 in layers 40 to 47. The attention, embedding and output head weights are 4-bit affine with group size 64. The vision tower stays in bfloat16 and the router in float32.
|
| 19 |
+
|
| 20 |
+
Tested with the branch of that pull request.
|
| 21 |
+
|
| 22 |
+
## Use with mlx
|
| 23 |
+
|
| 24 |
+
```bash
|
| 25 |
+
pip install -U git+https://github.com/ml-explore/mlx-lm.git@refs/pull/2061/head
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
```python
|
| 29 |
+
from mlx_lm import load, generate
|
| 30 |
+
|
| 31 |
+
model, tokenizer = load("mlx-community/Inkling-2-Small-4bit")
|
| 32 |
+
|
| 33 |
+
prompt = "hello"
|
| 34 |
+
|
| 35 |
+
if tokenizer.chat_template is not None:
|
| 36 |
+
messages = [{"role": "user", "content": prompt}]
|
| 37 |
+
prompt = tokenizer.apply_chat_template(
|
| 38 |
+
messages, add_generation_prompt=True, return_dict=False,
|
| 39 |
+
)
|
| 40 |
+
|
| 41 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
For image input, run `mlx_lm.server` and send the images as `image_url` parts of a chat message.
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- set effort_map = {"none": 0.0, "minimal": 0.1, "low": 0.2, "medium": 0.7, "high": 0.9, "xhigh": 0.99, "max": 0.99} -%}
|
| 2 |
+
{%- set role_token = {"user": "<|message_user|>", "assistant": "<|message_model|>", "system": "<|message_system|>", "tool": "<|message_tool|>"} -%}
|
| 3 |
+
|
| 4 |
+
{%- macro emit_thinking_effort() -%}
|
| 5 |
+
{%- set eff = reasoning_effort if reasoning_effort is defined and reasoning_effort is not none else 0.9 -%}
|
| 6 |
+
{%- if eff is string -%}
|
| 7 |
+
{%- set key = eff | trim -%}
|
| 8 |
+
{%- if key not in effort_map -%}
|
| 9 |
+
{{- raise_exception("Unknown reasoning_effort: " ~ eff) -}}
|
| 10 |
+
{%- endif -%}
|
| 11 |
+
{%- set num = effort_map[key] -%}
|
| 12 |
+
{%- else -%}
|
| 13 |
+
{%- set num = eff | float -%}
|
| 14 |
+
{%- endif -%}
|
| 15 |
+
{%- if num < 0.0 or num > 0.99 -%}
|
| 16 |
+
{{- raise_exception("reasoning_effort must be in [0.0, 0.99]") -}}
|
| 17 |
+
{%- endif -%}
|
| 18 |
+
{{- "<|message_system|><|content_text|>Thinking effort level: " -}}
|
| 19 |
+
{%- if num == 0.0 -%}0{%- else -%}{{ num }}{%- endif -%}
|
| 20 |
+
{{- "<|end_message|>" -}}
|
| 21 |
+
{%- endmacro -%}
|
| 22 |
+
|
| 23 |
+
{%- if tools -%}
|
| 24 |
+
{%- set tool_state = namespace(specs=[]) -%}
|
| 25 |
+
{%- for tool in tools -%}
|
| 26 |
+
{%- set fn = tool.function if tool.function is defined else tool -%}
|
| 27 |
+
{%- set spec = {
|
| 28 |
+
"description": (fn.description if fn.description is defined and fn.description else ""),
|
| 29 |
+
"name": fn.name,
|
| 30 |
+
"parameters": (fn.parameters if fn.parameters is defined and fn.parameters else {}),
|
| 31 |
+
"type": (tool.type if tool.type is defined and tool.type else "function"),
|
| 32 |
+
} -%}
|
| 33 |
+
{%- set tool_state.specs = tool_state.specs + [spec] -%}
|
| 34 |
+
{%- endfor -%}
|
| 35 |
+
{{- "<|message_system|>tool_declare<|content_xml|>" -}}
|
| 36 |
+
{{- tool_state.specs | tojson(sort_keys=true, separators=(",", ":")) -}}
|
| 37 |
+
{{- "<|end_message|>" -}}
|
| 38 |
+
{%- endif -%}
|
| 39 |
+
|
| 40 |
+
{%- set state = namespace(effort_emitted=false) -%}
|
| 41 |
+
{%- for message in messages -%}
|
| 42 |
+
{%- if message.role not in role_token -%}
|
| 43 |
+
{{- raise_exception("Unknown message role: " ~ message.role) -}}
|
| 44 |
+
{%- endif -%}
|
| 45 |
+
{%- if not state.effort_emitted and message.role != "system" -%}
|
| 46 |
+
{{- emit_thinking_effort() -}}
|
| 47 |
+
{%- set state.effort_emitted = true -%}
|
| 48 |
+
{%- endif -%}
|
| 49 |
+
|
| 50 |
+
{%- set header = namespace(text=role_token[message.role]) -%}
|
| 51 |
+
{%- if message.role == "tool" -%}
|
| 52 |
+
{%- if message.name is defined and message.name -%}
|
| 53 |
+
{%- set header.text = header.text ~ message.name -%}
|
| 54 |
+
{%- elif message.tool_call_id is defined and message.tool_call_id -%}
|
| 55 |
+
{%- for prev in messages -%}
|
| 56 |
+
{%- if prev.role == "assistant" and prev.tool_calls -%}
|
| 57 |
+
{%- for tc in prev.tool_calls -%}
|
| 58 |
+
{%- if tc.id is defined and tc.id == message.tool_call_id and tc.function.name is defined -%}
|
| 59 |
+
{%- set header.text = header.text ~ tc.function.name -%}
|
| 60 |
+
{%- endif -%}
|
| 61 |
+
{%- endfor -%}
|
| 62 |
+
{%- endif -%}
|
| 63 |
+
{%- endfor -%}
|
| 64 |
+
{%- endif -%}
|
| 65 |
+
{%- elif message.role == "assistant" and message.name is defined and message.name -%}
|
| 66 |
+
{%- set header.text = header.text ~ message.name -%}
|
| 67 |
+
{%- endif -%}
|
| 68 |
+
{%- set rtok = header.text -%}
|
| 69 |
+
|
| 70 |
+
{%- if message.role == "assistant" and message.reasoning_content is defined and message.reasoning_content -%}
|
| 71 |
+
{{- rtok ~ "<|content_thinking|>" ~ message.reasoning_content ~ "<|end_message|>" -}}
|
| 72 |
+
{%- endif -%}
|
| 73 |
+
|
| 74 |
+
{%- if message.content is string and (message.content or not (message.role == "assistant" and (message.tool_calls or message.reasoning_content))) -%}
|
| 75 |
+
{{- rtok ~ "<|content_text|>" ~ message.content ~ "<|end_message|>" -}}
|
| 76 |
+
{%- elif message.content -%}
|
| 77 |
+
{%- for part in message.content -%}
|
| 78 |
+
{%- if part is string -%}
|
| 79 |
+
{{- rtok ~ "<|content_text|>" ~ part ~ "<|end_message|>" -}}
|
| 80 |
+
{%- elif part.type is not defined or part.type in ("text", "input_text") -%}
|
| 81 |
+
{%- set text_part = (part.text if part.text is defined and part.text is string else "") -%}
|
| 82 |
+
{{- rtok ~ "<|content_text|>" ~ text_part ~ "<|end_message|>" -}}
|
| 83 |
+
{%- elif part.type in ("image", "input_image", "image_url") -%}
|
| 84 |
+
{%- if message.role not in ("user", "tool") -%}
|
| 85 |
+
{{- raise_exception("Image content is only supported for user and tool messages") -}}
|
| 86 |
+
{%- endif -%}
|
| 87 |
+
{{- rtok ~ "<|content_image|><|unused_200054|><|end_message|>" -}}
|
| 88 |
+
{%- elif part.type in ("audio", "input_audio", "audio_url") -%}
|
| 89 |
+
{{- raise_exception("Inkling 2 does not accept audio input") -}}
|
| 90 |
+
{%- else -%}
|
| 91 |
+
{{- raise_exception("Unsupported content part type: " ~ part.type) -}}
|
| 92 |
+
{%- endif -%}
|
| 93 |
+
{%- endfor -%}
|
| 94 |
+
{%- endif -%}
|
| 95 |
+
|
| 96 |
+
{%- if message.role == "assistant" and message.tool_calls -%}
|
| 97 |
+
{%- for tc in message.tool_calls -%}
|
| 98 |
+
{%- set fn = tc.function -%}
|
| 99 |
+
{%- if fn.name is not defined or fn.name is not string -%}
|
| 100 |
+
{{- raise_exception("tool call function name must be a string") -}}
|
| 101 |
+
{%- endif -%}
|
| 102 |
+
{%- if message.name is defined and message.name and message.name != fn.name -%}
|
| 103 |
+
{{- raise_exception("assistant name " ~ message.name ~ " does not match its tool call " ~ fn.name) -}}
|
| 104 |
+
{%- endif -%}
|
| 105 |
+
{%- set args = fn.arguments if fn.arguments is defined and fn.arguments else {} -%}
|
| 106 |
+
{%- if args is string -%}
|
| 107 |
+
{{- raise_exception("tool call arguments must be a parsed object, not a JSON string; canonicalize upstream") -}}
|
| 108 |
+
{%- endif -%}
|
| 109 |
+
{%- if args is not mapping -%}
|
| 110 |
+
{{- raise_exception("tool call arguments must be an object") -}}
|
| 111 |
+
{%- endif -%}
|
| 112 |
+
{{- "<|message_model|>" ~ fn.name ~ "<|content_invoke_tool_json|>" -}}
|
| 113 |
+
{{- '{"name":' ~ (fn.name | tojson(sort_keys=true, separators=(",", ":"))) ~ ',"args":' -}}
|
| 114 |
+
{{- (args | tojson(sort_keys=true, separators=(",", ":"))) -}}
|
| 115 |
+
{{- "}<|end_message|>" -}}
|
| 116 |
+
{%- endfor -%}
|
| 117 |
+
{%- endif -%}
|
| 118 |
+
|
| 119 |
+
{%- if message.role == "assistant" -%}
|
| 120 |
+
{{- "<|content_model_end_sampling|>" -}}
|
| 121 |
+
{%- endif -%}
|
| 122 |
+
{%- endfor -%}
|
| 123 |
+
|
| 124 |
+
{%- if not state.effort_emitted -%}
|
| 125 |
+
{{- emit_thinking_effort() -}}
|
| 126 |
+
{%- endif -%}
|
config.json
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Inkling2ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"eos_token_id": 200006,
|
| 6 |
+
"model_type": "inkling2",
|
| 7 |
+
"mtp_config": {
|
| 8 |
+
"hidden_size": 4608,
|
| 9 |
+
"num_hidden_layers": 5,
|
| 10 |
+
"num_attention_heads": 48,
|
| 11 |
+
"num_key_value_heads": 8,
|
| 12 |
+
"head_dim": 128,
|
| 13 |
+
"intermediate_size": 18432,
|
| 14 |
+
"max_position_embeddings": 1048576,
|
| 15 |
+
"torch_dtype": "bfloat16",
|
| 16 |
+
"q_bias": false,
|
| 17 |
+
"o_bias": false,
|
| 18 |
+
"rms_norm_eps": 1e-06,
|
| 19 |
+
"rope_theta": 1000000.0,
|
| 20 |
+
"local_layer_ids": [
|
| 21 |
+
0,
|
| 22 |
+
1,
|
| 23 |
+
3,
|
| 24 |
+
4
|
| 25 |
+
],
|
| 26 |
+
"sliding_window_size": 1024,
|
| 27 |
+
"block_size": 8,
|
| 28 |
+
"markov_rank": 256,
|
| 29 |
+
"markov_head_type": "rnn_hidden",
|
| 30 |
+
"target_layer_ids": [
|
| 31 |
+
5,
|
| 32 |
+
11,
|
| 33 |
+
17,
|
| 34 |
+
23,
|
| 35 |
+
29,
|
| 36 |
+
35,
|
| 37 |
+
41,
|
| 38 |
+
48
|
| 39 |
+
]
|
| 40 |
+
},
|
| 41 |
+
"quantization": {
|
| 42 |
+
"group_size": 64,
|
| 43 |
+
"bits": 4,
|
| 44 |
+
"mode": "affine"
|
| 45 |
+
},
|
| 46 |
+
"quantization_config": {
|
| 47 |
+
"group_size": 64,
|
| 48 |
+
"bits": 4,
|
| 49 |
+
"mode": "affine"
|
| 50 |
+
},
|
| 51 |
+
"text_config": {
|
| 52 |
+
"model_max_length": 1048576,
|
| 53 |
+
"torch_dtype": "bfloat16",
|
| 54 |
+
"hidden_size": 4608,
|
| 55 |
+
"num_hidden_layers": 48,
|
| 56 |
+
"vocab_size": 201024,
|
| 57 |
+
"num_attention_heads": 48,
|
| 58 |
+
"num_key_value_heads": 8,
|
| 59 |
+
"head_dim": 128,
|
| 60 |
+
"d_rel": 16,
|
| 61 |
+
"rel_extent": 1024,
|
| 62 |
+
"q_bias": false,
|
| 63 |
+
"o_bias": false,
|
| 64 |
+
"log_scaling_n_floor": 128000,
|
| 65 |
+
"log_scaling_alpha": 0.1,
|
| 66 |
+
"rms_norm_eps": 1e-06,
|
| 67 |
+
"pre_norm_pre_affine": false,
|
| 68 |
+
"final_norm_pre_affine": false,
|
| 69 |
+
"use_value_norm_no_gamma": true,
|
| 70 |
+
"qk_l2_clip_threshold": 22.627416997969522,
|
| 71 |
+
"rel_l2_clip_threshold": 8.0,
|
| 72 |
+
"local_layer_ids": [
|
| 73 |
+
0,
|
| 74 |
+
1,
|
| 75 |
+
2,
|
| 76 |
+
3,
|
| 77 |
+
4,
|
| 78 |
+
6,
|
| 79 |
+
7,
|
| 80 |
+
8,
|
| 81 |
+
9,
|
| 82 |
+
10,
|
| 83 |
+
12,
|
| 84 |
+
13,
|
| 85 |
+
14,
|
| 86 |
+
15,
|
| 87 |
+
16,
|
| 88 |
+
18,
|
| 89 |
+
19,
|
| 90 |
+
20,
|
| 91 |
+
21,
|
| 92 |
+
22,
|
| 93 |
+
24,
|
| 94 |
+
25,
|
| 95 |
+
26,
|
| 96 |
+
27,
|
| 97 |
+
28,
|
| 98 |
+
30,
|
| 99 |
+
31,
|
| 100 |
+
32,
|
| 101 |
+
33,
|
| 102 |
+
34,
|
| 103 |
+
36,
|
| 104 |
+
37,
|
| 105 |
+
38,
|
| 106 |
+
39,
|
| 107 |
+
40,
|
| 108 |
+
42,
|
| 109 |
+
43,
|
| 110 |
+
44,
|
| 111 |
+
45,
|
| 112 |
+
46
|
| 113 |
+
],
|
| 114 |
+
"sconv_kernel_size": 4,
|
| 115 |
+
"unpadded_vocab_size": 200058,
|
| 116 |
+
"final_logit_softcapping": 30.0,
|
| 117 |
+
"swa_head_dim": 128,
|
| 118 |
+
"swa_num_attention_heads": 48,
|
| 119 |
+
"swa_num_key_value_heads": 8,
|
| 120 |
+
"sliding_window_size": 1024,
|
| 121 |
+
"n_layers_per_attn_res_block": 6,
|
| 122 |
+
"attn_res_normalize_values": true,
|
| 123 |
+
"n_routed_experts": 384,
|
| 124 |
+
"num_experts_per_tok": 8,
|
| 125 |
+
"n_shared_experts": 0,
|
| 126 |
+
"intermediate_size": 2304,
|
| 127 |
+
"mlp_gate_softcap": 4.0,
|
| 128 |
+
"mlp_up_softcap": 25.0,
|
| 129 |
+
"route_scale": 8.0,
|
| 130 |
+
"use_gate_bias": true
|
| 131 |
+
},
|
| 132 |
+
"vision_config": {
|
| 133 |
+
"temporal_patch_size": 2,
|
| 134 |
+
"native_patch_size": 20,
|
| 135 |
+
"adapter_merge_size": 2,
|
| 136 |
+
"projection_hidden_dim": 4096,
|
| 137 |
+
"projector_bias": false,
|
| 138 |
+
"hidden_size": 1024,
|
| 139 |
+
"num_hidden_layers": 23,
|
| 140 |
+
"num_attention_heads": 16,
|
| 141 |
+
"mlp_ratio": 4.0,
|
| 142 |
+
"posemb_grid_size": 32,
|
| 143 |
+
"layer_norm_eps": 1e-05
|
| 144 |
+
}
|
| 145 |
+
}
|
model-00001-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7318ef69428d814ebc620cc9d573e5d3810640c096f50f8922855d031db54cbc
|
| 3 |
+
size 5114635535
|
model-00002-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a08cfb140cb2af692800687c84c02540f2d95bce70d53f81df2faead557b5205
|
| 3 |
+
size 2355712741
|
model-00003-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:500b34a93e492e5f47234ee35fb3a50944fbc94d25a28d97160e7bc8384fe01b
|
| 3 |
+
size 4586473400
|
model-00004-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:546fac9fc689c053f54e00997bf1a5711b880cdc73229702ff446b8f7fb600d6
|
| 3 |
+
size 2355712653
|
model-00005-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b963628c85d96df2c3fb1258e281be11c1b8c56a61bd4363fd8bf9268e2cf38b
|
| 3 |
+
size 4586473400
|
model-00006-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df135c4980e2ab2ea0f602d5dc576e54b4f7cce77ba3a0ace668caac156ae908
|
| 3 |
+
size 2355712661
|
model-00007-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b92127ed94fa03f3aeec1569fbd33d38c0f49cfcdb7355468fae3be733d15bcd
|
| 3 |
+
size 4586473400
|
model-00008-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0cfb934aa8f93a192464c26b568bc9f9608d34606d65699d056ab0a9447794d6
|
| 3 |
+
size 2355712711
|
model-00009-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:239983a8fad584c151468fdecc19c265204901edf5b884103e1f166f0b6bdead
|
| 3 |
+
size 4586473400
|
model-00010-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e6a90788c1f4cdcc5d18833441f38e60d05eab67dca723412af02dc69e7d455
|
| 3 |
+
size 2355749561
|
model-00011-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c2764b5f2936c116f4e66e78cb9e1f55b92b9b66b070114503586cb21093193
|
| 3 |
+
size 4586473400
|
model-00012-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f11b241c754b8d4d22c947a043e6d81ab2d1d00f08e5030aa1460f3307286f37
|
| 3 |
+
size 2355898009
|
model-00013-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c39ffe89c17a61968e14f2b51a58a30be656fadff67837cbdd4927b253d4b6d0
|
| 3 |
+
size 4586473400
|
model-00014-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:408a1dc43b242d177b831f8a41c167c7fa9cdc2bda96306e1920ad647431e45e
|
| 3 |
+
size 2355712689
|
model-00015-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6244f997d325dc383f7bd5c175d5226caaa7610a84237eae9c3a4fdb9d996d4d
|
| 3 |
+
size 4586473400
|
model-00016-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:14d0843b27f904e5931c56cdbe7c76c7fc87aaeb9d461a59a84ffd4a2fe9cb5b
|
| 3 |
+
size 2355712651
|
model-00017-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f978cacaf1ae55182a46bac9f611d8b1558216df6f3839993c08780da2bda539
|
| 3 |
+
size 4586473400
|
model-00018-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d2df20c45af2be4b5ba427ca812f0154f55fa624fe30841685897ec368dde4b
|
| 3 |
+
size 2355712731
|
model-00019-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cbc30119125359fdabadc2a9d83541b1cc96fa0f74df671ed6004119d258c82c
|
| 3 |
+
size 4586473400
|
model-00020-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:009c7276adb997610653f5f4b0dd1d47028c2cedcbba974e255bba191e0a2bf9
|
| 3 |
+
size 2355712677
|
model-00021-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:348892e3bc994b50d77390a02ec410fcad3f0bdf8e30877dd3a30eebfc47a4a0
|
| 3 |
+
size 4586473403
|
model-00022-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:534075fdadbf99956f3c076e0bad50f047de228158e184bce2f4f5ef63930e99
|
| 3 |
+
size 2355749558
|
model-00023-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4c465c1ad6b3efa8053ea082bf24310d82cbe17ec37c86c3e552e2fdd5f5c96e
|
| 3 |
+
size 4586473403
|
model-00024-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2751f1bc4f912a8e8579578b0c0c7512cbc2b4286151ad3ac0528a3705f2c6c3
|
| 3 |
+
size 2355898070
|
model-00025-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e155a18c01f339b64fbe925e39524d456e8399bea05f23d45f39f4c5cfe4b6d4
|
| 3 |
+
size 4586473403
|
model-00026-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dbe5bf8ef2ea4553c263837c6ec20b7d2469ff4d1406d701df23113e22208afa
|
| 3 |
+
size 2355712782
|
model-00027-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:600bdd833cca4d2c9b722645313afb60815571ddb3948bf6489e9f94ec4bc2a9
|
| 3 |
+
size 4586473403
|
model-00028-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ec2042f0871aebf3e3dd0613da6e09d0ad7a1eb57c3992cff10bcf5255bab3c1
|
| 3 |
+
size 2355712704
|
model-00029-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:079921548e46e77304bda76beb92043f1a675f2671f7399482078e77e80adc1e
|
| 3 |
+
size 4586473403
|
model-00030-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d8835fb1dd752a20dd1706e8c243e09016aae49701c91818a36f4877e938f833
|
| 3 |
+
size 2355712708
|
model-00031-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f208333723ab56bed5ca90b577013235f9f786f4301b983317ca436768272fc
|
| 3 |
+
size 4586473403
|
model-00032-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:02178b97cee5dff922a363b137c0a0efa2b0cc5e65dca9a2f36be4b447d17223
|
| 3 |
+
size 2355712764
|
model-00033-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:85ee3b15da5dd67d1f88b09d0a004343a1752a466f4a85294a516fd4b116dfa3
|
| 3 |
+
size 4586473403
|
model-00034-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0afd1eb66eada15b7c3ce968d5036f37ec46654cd191729a1c366b202be07c3b
|
| 3 |
+
size 2355749632
|
model-00035-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0cf8e3079a2cf4b8fa7036fa5994bf616e659b92505b7c6b45896255d1a43808
|
| 3 |
+
size 4586473403
|
model-00036-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e6051e41dbba2ef6d60ccc6eda9ad514954fb86f553884812cdad780f47ea08e
|
| 3 |
+
size 2355898058
|
model-00037-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df222b71023aea31822c1a28f644e7acdd5301226406331256dee6931fdaa320
|
| 3 |
+
size 4586473403
|
model-00038-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e395912241ca7a6df3da0c5449f821a18b223a70a4129797df51e596468c1c1f
|
| 3 |
+
size 2355712722
|
model-00039-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7745e9d1e9800f335983e814514229b8dec982c7cb5a7af4bd2ff687050c238b
|
| 3 |
+
size 4586473403
|
model-00040-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e299cefc1a7d3e7c224cbe195369d3c6118e4f19adcec6db910f39b280302fe7
|
| 3 |
+
size 2355712758
|
model-00041-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3bede324a15005e7e26749faa2067f074e77e724eec4bfbcd24581068bac0590
|
| 3 |
+
size 4586473403
|
model-00042-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d1bca85017a02e9e09a9f7d553a8b379a651602033a8516449f30abe55f5958
|
| 3 |
+
size 2355712752
|
model-00043-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:327bd5d81c634033c85d4c13adcd2fa7640e31cee487491b8040af890e149878
|
| 3 |
+
size 4586473403
|
model-00044-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:782fb01f79f6c7b38087596f577bffc7b597bc201ab2e16789db63429180fe42
|
| 3 |
+
size 2355712768
|
model-00045-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9401eac6e764afb1c98eebdc6ed3756a08fc0f9ca8f19330b11601ca18bcf84f
|
| 3 |
+
size 4586473403
|
model-00046-of-00097.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:212299c2115345af62e11d10b92100afdc9c85984010952fd4b7b45725abf939
|
| 3 |
+
size 2355749576
|