Text Generation
Transformers
Safetensors
English
qwen2
webdev
html5
accessibility
frontend
qwen2.5
null-space-lora
slm-v2
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use BRR1154/SLM-WebDev-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BRR1154/SLM-WebDev-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BRR1154/SLM-WebDev-v2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("BRR1154/SLM-WebDev-v2") model = AutoModelForCausalLM.from_pretrained("BRR1154/SLM-WebDev-v2", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BRR1154/SLM-WebDev-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BRR1154/SLM-WebDev-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BRR1154/SLM-WebDev-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/BRR1154/SLM-WebDev-v2
- SGLang
How to use BRR1154/SLM-WebDev-v2 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 "BRR1154/SLM-WebDev-v2" \ --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": "BRR1154/SLM-WebDev-v2", "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 "BRR1154/SLM-WebDev-v2" \ --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": "BRR1154/SLM-WebDev-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use BRR1154/SLM-WebDev-v2 with Docker Model Runner:
docker model run hf.co/BRR1154/SLM-WebDev-v2
Publish BRR1154/SLM-WebDev-v2: verified Swarm-14 v2 Real-Sleep Null-Space checkpoint
Browse files- .gitattributes +1 -0
- README.md +84 -0
- chat_template.jinja +54 -0
- config.json +57 -0
- generation_config.json +14 -0
- model.safetensors +3 -0
- real_training_telemetry.json +231 -0
- tokenizer.json +3 -0
- tokenizer_config.json +30 -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,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
library_name: transformers
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
base_model:
|
| 8 |
+
- Qwen/Qwen2.5-0.5B-Instruct
|
| 9 |
+
- BRR1154/SLM-WebDev-v1
|
| 10 |
+
tags:
|
| 11 |
+
- webdev
|
| 12 |
+
- html5
|
| 13 |
+
- accessibility
|
| 14 |
+
- frontend
|
| 15 |
+
- qwen2.5
|
| 16 |
+
- null-space-lora
|
| 17 |
+
- slm-v2
|
| 18 |
+
model-index:
|
| 19 |
+
- name: SLM-WebDev-v2
|
| 20 |
+
results:
|
| 21 |
+
- task:
|
| 22 |
+
type: text-generation
|
| 23 |
+
name: HTML5-AST-UI-12
|
| 24 |
+
metrics:
|
| 25 |
+
- name: Domain Execution / Solver Accuracy (After v2)
|
| 26 |
+
type: accuracy
|
| 27 |
+
value: 58.33
|
| 28 |
+
- name: Domain Execution / Solver Accuracy (Before v1 Baseline)
|
| 29 |
+
type: accuracy
|
| 30 |
+
value: 25.0
|
| 31 |
+
- task:
|
| 32 |
+
type: multiple-choice
|
| 33 |
+
name: ARC-Easy-25 General Retention Guard
|
| 34 |
+
metrics:
|
| 35 |
+
- name: ARC-Easy-25 Raw / Calibrated (%)
|
| 36 |
+
type: accuracy
|
| 37 |
+
value: 76.0
|
| 38 |
+
---
|
| 39 |
+
|
| 40 |
+
# SLM-WebDev-v2: Accessible HTML5 AST UI Synthesis Specialist (v2)
|
| 41 |
+
|
| 42 |
+
**Lead Architect:** Bhavanam Rajendra Reddy (*Runtime-Slayers* | ORCID: [0009-0005-3349-1162](https://orcid.org/0009-0005-3349-1162))
|
| 43 |
+
**Base v1 Checkpoint:** [`BRR1154/SLM-WebDev-v1`](https://huggingface.co/BRR1154/SLM-WebDev-v1) (`Qwen/Qwen2.5-0.5B-Instruct`, 494M params, BF16)
|
| 44 |
+
**Training Method:** Real PyTorch `LoRALinear` Backpropagation + Wake-Error `ABSTAIN` Calibration + Empirical Activation-Covariance SVD Null-Space Consolidation ($\Delta W_{\text{proj}} = \Delta W - (\Delta W V_{\text{base}}) V_{\text{base}}^T$)
|
| 45 |
+
|
| 46 |
+
---
|
| 47 |
+
|
| 48 |
+
## Verified Before (`v1`) vs After (`v2`) Evaluation Scorecard
|
| 49 |
+
|
| 50 |
+
All metrics below are directly measured on disjoint held-out test suites (`eval_swarm14.py`) with real execution/solver verifiers (`sqlite3`, `z3`, `lxml.html`, `HTMLParser`, `subprocess` Python, Kahn DAG checker). Full weight telemetry is included in `real_training_telemetry.json`.
|
| 51 |
+
|
| 52 |
+
| Metric | `v1` Baseline (`BRR1154/SLM-WebDev-v1`) | `v2` Checkpoint (`BRR1154/SLM-WebDev-v2`) | Delta |
|
| 53 |
+
| :--- | :---: | :---: | :---: |
|
| 54 |
+
| **Domain (`HTML5-AST-UI-12`)** | **25.00%** | **58.33%** | **`+33.33` pts** |
|
| 55 |
+
| **ARC-Easy-25 Retention (Raw / PMI-Cal)** | 64.0% / 72.0% | 76.0% / 76.0% | `+12.0` / `+4.0` pts |
|
| 56 |
+
| **AA-Omniscience-12 Calibration Index** | -25.00 | -25.00 | `+0.00` pts |
|
| 57 |
+
|
| 58 |
+
---
|
| 59 |
+
|
| 60 |
+
## Null-Space Weight Surgery Audit
|
| 61 |
+
|
| 62 |
+
- **Targeted Layer Band:** `10-23` (`q_proj, v_proj, o_proj, down_proj`)
|
| 63 |
+
- **Optimization Schedule:** `40` gradient steps (`LoRA rank=16`, empirical SVD subspace `k=24`)
|
| 64 |
+
- **Mutated Projections Verified:** `56/56` modules (`sha256` verified before vs after merge)
|
| 65 |
+
- **Max Frobenius Shift Ratio:** `1.627%`
|
| 66 |
+
- **Max Null-Space Orthogonality Error:** `3.842e-09`
|
| 67 |
+
|
| 68 |
+
---
|
| 69 |
+
|
| 70 |
+
## Quickstart (`transformers`)
|
| 71 |
+
|
| 72 |
+
```python
|
| 73 |
+
import torch
|
| 74 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 75 |
+
|
| 76 |
+
model_id = "BRR1154/SLM-WebDev-v2"
|
| 77 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 78 |
+
model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")
|
| 79 |
+
|
| 80 |
+
messages = [{"role": "user", "content": "Solve the specialist task concisely and deterministically."}]
|
| 81 |
+
inputs = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt").to(model.device)
|
| 82 |
+
out = model.generate(inputs, max_new_tokens=160, do_sample=False)
|
| 83 |
+
print(tokenizer.decode(out[0][inputs.shape[1]:], skip_special_tokens=True))
|
| 84 |
+
```
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- if tools %}
|
| 2 |
+
{{- '<|im_start|>system\n' }}
|
| 3 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 4 |
+
{{- messages[0]['content'] }}
|
| 5 |
+
{%- else %}
|
| 6 |
+
{{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}
|
| 7 |
+
{%- endif %}
|
| 8 |
+
{{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
|
| 9 |
+
{%- for tool in tools %}
|
| 10 |
+
{{- "\n" }}
|
| 11 |
+
{{- tool | tojson }}
|
| 12 |
+
{%- endfor %}
|
| 13 |
+
{{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
|
| 14 |
+
{%- else %}
|
| 15 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 16 |
+
{{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
|
| 17 |
+
{%- else %}
|
| 18 |
+
{{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }}
|
| 19 |
+
{%- endif %}
|
| 20 |
+
{%- endif %}
|
| 21 |
+
{%- for message in messages %}
|
| 22 |
+
{%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
|
| 23 |
+
{{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
|
| 24 |
+
{%- elif message.role == "assistant" %}
|
| 25 |
+
{{- '<|im_start|>' + message.role }}
|
| 26 |
+
{%- if message.content %}
|
| 27 |
+
{{- '\n' + message.content }}
|
| 28 |
+
{%- endif %}
|
| 29 |
+
{%- for tool_call in message.tool_calls %}
|
| 30 |
+
{%- if tool_call.function is defined %}
|
| 31 |
+
{%- set tool_call = tool_call.function %}
|
| 32 |
+
{%- endif %}
|
| 33 |
+
{{- '\n<tool_call>\n{"name": "' }}
|
| 34 |
+
{{- tool_call.name }}
|
| 35 |
+
{{- '", "arguments": ' }}
|
| 36 |
+
{{- tool_call.arguments | tojson }}
|
| 37 |
+
{{- '}\n</tool_call>' }}
|
| 38 |
+
{%- endfor %}
|
| 39 |
+
{{- '<|im_end|>\n' }}
|
| 40 |
+
{%- elif message.role == "tool" %}
|
| 41 |
+
{%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
|
| 42 |
+
{{- '<|im_start|>user' }}
|
| 43 |
+
{%- endif %}
|
| 44 |
+
{{- '\n<tool_response>\n' }}
|
| 45 |
+
{{- message.content }}
|
| 46 |
+
{{- '\n</tool_response>' }}
|
| 47 |
+
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
| 48 |
+
{{- '<|im_end|>\n' }}
|
| 49 |
+
{%- endif %}
|
| 50 |
+
{%- endif %}
|
| 51 |
+
{%- endfor %}
|
| 52 |
+
{%- if add_generation_prompt %}
|
| 53 |
+
{{- '<|im_start|>assistant\n' }}
|
| 54 |
+
{%- endif %}
|
config.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen2ForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_dropout": 0.0,
|
| 6 |
+
"bos_token_id": 151643,
|
| 7 |
+
"dtype": "bfloat16",
|
| 8 |
+
"eos_token_id": 151645,
|
| 9 |
+
"hidden_act": "silu",
|
| 10 |
+
"hidden_size": 896,
|
| 11 |
+
"initializer_range": 0.02,
|
| 12 |
+
"intermediate_size": 4864,
|
| 13 |
+
"layer_types": [
|
| 14 |
+
"full_attention",
|
| 15 |
+
"full_attention",
|
| 16 |
+
"full_attention",
|
| 17 |
+
"full_attention",
|
| 18 |
+
"full_attention",
|
| 19 |
+
"full_attention",
|
| 20 |
+
"full_attention",
|
| 21 |
+
"full_attention",
|
| 22 |
+
"full_attention",
|
| 23 |
+
"full_attention",
|
| 24 |
+
"full_attention",
|
| 25 |
+
"full_attention",
|
| 26 |
+
"full_attention",
|
| 27 |
+
"full_attention",
|
| 28 |
+
"full_attention",
|
| 29 |
+
"full_attention",
|
| 30 |
+
"full_attention",
|
| 31 |
+
"full_attention",
|
| 32 |
+
"full_attention",
|
| 33 |
+
"full_attention",
|
| 34 |
+
"full_attention",
|
| 35 |
+
"full_attention",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"full_attention"
|
| 38 |
+
],
|
| 39 |
+
"max_position_embeddings": 32768,
|
| 40 |
+
"max_window_layers": 21,
|
| 41 |
+
"model_type": "qwen2",
|
| 42 |
+
"num_attention_heads": 14,
|
| 43 |
+
"num_hidden_layers": 24,
|
| 44 |
+
"num_key_value_heads": 2,
|
| 45 |
+
"pad_token_id": null,
|
| 46 |
+
"rms_norm_eps": 1e-06,
|
| 47 |
+
"rope_parameters": {
|
| 48 |
+
"rope_theta": 1000000.0,
|
| 49 |
+
"rope_type": "default"
|
| 50 |
+
},
|
| 51 |
+
"sliding_window": null,
|
| 52 |
+
"tie_word_embeddings": true,
|
| 53 |
+
"transformers_version": "5.16.1",
|
| 54 |
+
"use_cache": true,
|
| 55 |
+
"use_sliding_window": false,
|
| 56 |
+
"vocab_size": 151936
|
| 57 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
151645,
|
| 6 |
+
151643
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 151643,
|
| 9 |
+
"repetition_penalty": 1.1,
|
| 10 |
+
"temperature": 0.7,
|
| 11 |
+
"top_k": 20,
|
| 12 |
+
"top_p": 0.8,
|
| 13 |
+
"transformers_version": "5.16.1"
|
| 14 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9888116cf6bc4c2060d25572b64adf8e765dcb73c1e2a48af38ab0f44e451194
|
| 3 |
+
size 988097824
|
real_training_telemetry.json
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_tag": "SLM-WebDev-v1-v2",
|
| 3 |
+
"base_path": "C:\\Users\\brr33\\.gemini\\antigravity\\scratch\\intriq\\slm_swarm_engine\\models\\SLM-WebDev-v1",
|
| 4 |
+
"output_dir": "C:\\Users\\brr33\\.gemini\\antigravity\\scratch\\intriq\\real_sleep_trainer\\checkpoints_v2\\SLM-WebDev-v1-v2",
|
| 5 |
+
"curriculum_path": "C:\\Users\\brr33\\.gemini\\antigravity\\scratch\\intriq\\real_sleep_trainer\\swarm14\\curricula\\SLM-WebDev-v1.json",
|
| 6 |
+
"layer_band": "10-23",
|
| 7 |
+
"save_bf16": true,
|
| 8 |
+
"steps": 40,
|
| 9 |
+
"grad_accum": 2,
|
| 10 |
+
"effective_examples": 160,
|
| 11 |
+
"lora_rank": 16,
|
| 12 |
+
"nullspace_k": 24,
|
| 13 |
+
"frobenius_budget": 0.14,
|
| 14 |
+
"elapsed_total_sec": 571.83,
|
| 15 |
+
"post_null_option_logprobs": {
|
| 16 |
+
"A": -15.234,
|
| 17 |
+
"B": -14.839,
|
| 18 |
+
"C": -15.057,
|
| 19 |
+
"D": -14.433,
|
| 20 |
+
"E": -16.334
|
| 21 |
+
},
|
| 22 |
+
"loss_history": [
|
| 23 |
+
{
|
| 24 |
+
"step": 1,
|
| 25 |
+
"sft_loss": 0.3448,
|
| 26 |
+
"mcq_loss": 0.859,
|
| 27 |
+
"prior_kl": 0.85243
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"step": 10,
|
| 31 |
+
"sft_loss": 0.4702,
|
| 32 |
+
"mcq_loss": 0.279,
|
| 33 |
+
"prior_kl": 0.03081
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"step": 20,
|
| 37 |
+
"sft_loss": 0.3296,
|
| 38 |
+
"mcq_loss": 0.4789,
|
| 39 |
+
"prior_kl": 0.15108
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"step": 30,
|
| 43 |
+
"sft_loss": 0.2365,
|
| 44 |
+
"mcq_loss": 3.6152,
|
| 45 |
+
"prior_kl": 0.02009
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"step": 40,
|
| 49 |
+
"sft_loss": 0.2044,
|
| 50 |
+
"mcq_loss": 3.6084,
|
| 51 |
+
"prior_kl": 0.03311
|
| 52 |
+
}
|
| 53 |
+
],
|
| 54 |
+
"nullspace_merge_audit": {
|
| 55 |
+
"modules_merged": 56,
|
| 56 |
+
"modules_hash_changed": 56,
|
| 57 |
+
"nullspace_projected": true,
|
| 58 |
+
"max_orthogonality_error": 3.841705620288849e-09,
|
| 59 |
+
"max_frobenius_ratio_pct": 1.627,
|
| 60 |
+
"layer_sample": [
|
| 61 |
+
{
|
| 62 |
+
"module": "model.layers.10.self_attn.q_proj",
|
| 63 |
+
"shape": [
|
| 64 |
+
896,
|
| 65 |
+
896
|
| 66 |
+
],
|
| 67 |
+
"w0_frob": 19.2065,
|
| 68 |
+
"dw_frob": 0.23668,
|
| 69 |
+
"frob_ratio_pct": 1.232,
|
| 70 |
+
"nullspace_ortho_err": 1.3278622645884752e-09,
|
| 71 |
+
"clamped": false,
|
| 72 |
+
"sha256_before": "46f7bf7e1965bde1",
|
| 73 |
+
"sha256_after": "f79d872da47c90f9"
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"module": "model.layers.10.self_attn.v_proj",
|
| 77 |
+
"shape": [
|
| 78 |
+
128,
|
| 79 |
+
896
|
| 80 |
+
],
|
| 81 |
+
"w0_frob": 6.8381,
|
| 82 |
+
"dw_frob": 0.08981,
|
| 83 |
+
"frob_ratio_pct": 1.313,
|
| 84 |
+
"nullspace_ortho_err": 1.0622898116707802e-09,
|
| 85 |
+
"clamped": false,
|
| 86 |
+
"sha256_before": "a4bedd8404473749",
|
| 87 |
+
"sha256_after": "ce298686d1a53593"
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"module": "model.layers.10.self_attn.o_proj",
|
| 91 |
+
"shape": [
|
| 92 |
+
896,
|
| 93 |
+
896
|
| 94 |
+
],
|
| 95 |
+
"w0_frob": 16.2924,
|
| 96 |
+
"dw_frob": 0.23753,
|
| 97 |
+
"frob_ratio_pct": 1.458,
|
| 98 |
+
"nullspace_ortho_err": 1.1568772606551647e-09,
|
| 99 |
+
"clamped": false,
|
| 100 |
+
"sha256_before": "1870c804cbb395b2",
|
| 101 |
+
"sha256_after": "3f74385b26f110cf"
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"module": "model.layers.10.mlp.down_proj",
|
| 105 |
+
"shape": [
|
| 106 |
+
896,
|
| 107 |
+
4864
|
| 108 |
+
],
|
| 109 |
+
"w0_frob": 36.6857,
|
| 110 |
+
"dw_frob": 0.23335,
|
| 111 |
+
"frob_ratio_pct": 0.636,
|
| 112 |
+
"nullspace_ortho_err": 2.473825588822365e-10,
|
| 113 |
+
"clamped": false,
|
| 114 |
+
"sha256_before": "b0a5936ec8de3e1f",
|
| 115 |
+
"sha256_after": "119a822fa49e5203"
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"module": "model.layers.11.self_attn.q_proj",
|
| 119 |
+
"shape": [
|
| 120 |
+
896,
|
| 121 |
+
896
|
| 122 |
+
],
|
| 123 |
+
"w0_frob": 18.4899,
|
| 124 |
+
"dw_frob": 0.23927,
|
| 125 |
+
"frob_ratio_pct": 1.294,
|
| 126 |
+
"nullspace_ortho_err": 1.2441887520253658e-09,
|
| 127 |
+
"clamped": false,
|
| 128 |
+
"sha256_before": "000ae2d2ac3f6bab",
|
| 129 |
+
"sha256_after": "2bafa7f73799cf2a"
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"module": "model.layers.11.self_attn.v_proj",
|
| 133 |
+
"shape": [
|
| 134 |
+
128,
|
| 135 |
+
896
|
| 136 |
+
],
|
| 137 |
+
"w0_frob": 5.7194,
|
| 138 |
+
"dw_frob": 0.09306,
|
| 139 |
+
"frob_ratio_pct": 1.627,
|
| 140 |
+
"nullspace_ortho_err": 1.6007106751203537e-09,
|
| 141 |
+
"clamped": false,
|
| 142 |
+
"sha256_before": "e8b86d80f07b6700",
|
| 143 |
+
"sha256_after": "6c8aee1e9e1253c7"
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"module": "model.layers.11.self_attn.o_proj",
|
| 147 |
+
"shape": [
|
| 148 |
+
896,
|
| 149 |
+
896
|
| 150 |
+
],
|
| 151 |
+
"w0_frob": 15.6306,
|
| 152 |
+
"dw_frob": 0.23056,
|
| 153 |
+
"frob_ratio_pct": 1.475,
|
| 154 |
+
"nullspace_ortho_err": 2.864908310584724e-09,
|
| 155 |
+
"clamped": false,
|
| 156 |
+
"sha256_before": "7cbd60e9e1311cb8",
|
| 157 |
+
"sha256_after": "2ab87f9575cd8c57"
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"module": "model.layers.11.mlp.down_proj",
|
| 161 |
+
"shape": [
|
| 162 |
+
896,
|
| 163 |
+
4864
|
| 164 |
+
],
|
| 165 |
+
"w0_frob": 37.3924,
|
| 166 |
+
"dw_frob": 0.22778,
|
| 167 |
+
"frob_ratio_pct": 0.609,
|
| 168 |
+
"nullspace_ortho_err": 3.092281986027956e-10,
|
| 169 |
+
"clamped": false,
|
| 170 |
+
"sha256_before": "2f0027afd81e973b",
|
| 171 |
+
"sha256_after": "5a21ccb3a2add4ce"
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"module": "model.layers.12.self_attn.q_proj",
|
| 175 |
+
"shape": [
|
| 176 |
+
896,
|
| 177 |
+
896
|
| 178 |
+
],
|
| 179 |
+
"w0_frob": 19.277,
|
| 180 |
+
"dw_frob": 0.24757,
|
| 181 |
+
"frob_ratio_pct": 1.284,
|
| 182 |
+
"nullspace_ortho_err": 2.1009327610954642e-09,
|
| 183 |
+
"clamped": false,
|
| 184 |
+
"sha256_before": "d1657c07c6fddd0b",
|
| 185 |
+
"sha256_after": "6d9069ab2f6ea259"
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"module": "model.layers.12.self_attn.v_proj",
|
| 189 |
+
"shape": [
|
| 190 |
+
128,
|
| 191 |
+
896
|
| 192 |
+
],
|
| 193 |
+
"w0_frob": 6.3311,
|
| 194 |
+
"dw_frob": 0.0934,
|
| 195 |
+
"frob_ratio_pct": 1.475,
|
| 196 |
+
"nullspace_ortho_err": 1.4260876923799515e-09,
|
| 197 |
+
"clamped": false,
|
| 198 |
+
"sha256_before": "fdb34b5d85d83079",
|
| 199 |
+
"sha256_after": "d8ad2a5721244c0e"
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"module": "model.layers.12.self_attn.o_proj",
|
| 203 |
+
"shape": [
|
| 204 |
+
896,
|
| 205 |
+
896
|
| 206 |
+
],
|
| 207 |
+
"w0_frob": 16.0116,
|
| 208 |
+
"dw_frob": 0.23065,
|
| 209 |
+
"frob_ratio_pct": 1.441,
|
| 210 |
+
"nullspace_ortho_err": 1.2078089639544487e-09,
|
| 211 |
+
"clamped": false,
|
| 212 |
+
"sha256_before": "a54a85a46eae3759",
|
| 213 |
+
"sha256_after": "e3799d6b13d1397c"
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"module": "model.layers.12.mlp.down_proj",
|
| 217 |
+
"shape": [
|
| 218 |
+
896,
|
| 219 |
+
4864
|
| 220 |
+
],
|
| 221 |
+
"w0_frob": 38.0377,
|
| 222 |
+
"dw_frob": 0.2476,
|
| 223 |
+
"frob_ratio_pct": 0.651,
|
| 224 |
+
"nullspace_ortho_err": 6.184563972055912e-10,
|
| 225 |
+
"clamped": false,
|
| 226 |
+
"sha256_before": "227038278d9e15b6",
|
| 227 |
+
"sha256_after": "075d11405cade91a"
|
| 228 |
+
}
|
| 229 |
+
]
|
| 230 |
+
}
|
| 231 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8
|
| 3 |
+
size 11421892
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": null,
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token": "<|im_end|>",
|
| 7 |
+
"errors": "replace",
|
| 8 |
+
"extra_special_tokens": [
|
| 9 |
+
"<|im_start|>",
|
| 10 |
+
"<|im_end|>",
|
| 11 |
+
"<|object_ref_start|>",
|
| 12 |
+
"<|object_ref_end|>",
|
| 13 |
+
"<|box_start|>",
|
| 14 |
+
"<|box_end|>",
|
| 15 |
+
"<|quad_start|>",
|
| 16 |
+
"<|quad_end|>",
|
| 17 |
+
"<|vision_start|>",
|
| 18 |
+
"<|vision_end|>",
|
| 19 |
+
"<|vision_pad|>",
|
| 20 |
+
"<|image_pad|>",
|
| 21 |
+
"<|video_pad|>"
|
| 22 |
+
],
|
| 23 |
+
"is_local": true,
|
| 24 |
+
"local_files_only": false,
|
| 25 |
+
"model_max_length": 131072,
|
| 26 |
+
"pad_token": "<|endoftext|>",
|
| 27 |
+
"split_special_tokens": false,
|
| 28 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 29 |
+
"unk_token": null
|
| 30 |
+
}
|