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
Download real_training_telemetry.json from BRR1154/SLM-WebDev-v2: direct link, hf CLI and curl.
- Browser
- Download file 6.44 kB
-
https://huggingface.co/BRR1154/SLM-WebDev-v2/resolve/main/real_training_telemetry.json
- Command line
-
hf download hf://BRR1154/SLM-WebDev-v2/real_training_telemetry.json
-
curl -L -o real_training_telemetry.json https://huggingface.co/BRR1154/SLM-WebDev-v2/resolve/main/real_training_telemetry.json
6.44 kB
| { | |
| "model_tag": "SLM-WebDev-v1-v2", | |
| "base_path": "C:\\Users\\brr33\\.gemini\\antigravity\\scratch\\intriq\\slm_swarm_engine\\models\\SLM-WebDev-v1", | |
| "output_dir": "C:\\Users\\brr33\\.gemini\\antigravity\\scratch\\intriq\\real_sleep_trainer\\checkpoints_v2\\SLM-WebDev-v1-v2", | |
| "curriculum_path": "C:\\Users\\brr33\\.gemini\\antigravity\\scratch\\intriq\\real_sleep_trainer\\swarm14\\curricula\\SLM-WebDev-v1.json", | |
| "layer_band": "10-23", | |
| "save_bf16": true, | |
| "steps": 40, | |
| "grad_accum": 2, | |
| "effective_examples": 160, | |
| "lora_rank": 16, | |
| "nullspace_k": 24, | |
| "frobenius_budget": 0.14, | |
| "elapsed_total_sec": 571.83, | |
| "post_null_option_logprobs": { | |
| "A": -15.234, | |
| "B": -14.839, | |
| "C": -15.057, | |
| "D": -14.433, | |
| "E": -16.334 | |
| }, | |
| "loss_history": [ | |
| { | |
| "step": 1, | |
| "sft_loss": 0.3448, | |
| "mcq_loss": 0.859, | |
| "prior_kl": 0.85243 | |
| }, | |
| { | |
| "step": 10, | |
| "sft_loss": 0.4702, | |
| "mcq_loss": 0.279, | |
| "prior_kl": 0.03081 | |
| }, | |
| { | |
| "step": 20, | |
| "sft_loss": 0.3296, | |
| "mcq_loss": 0.4789, | |
| "prior_kl": 0.15108 | |
| }, | |
| { | |
| "step": 30, | |
| "sft_loss": 0.2365, | |
| "mcq_loss": 3.6152, | |
| "prior_kl": 0.02009 | |
| }, | |
| { | |
| "step": 40, | |
| "sft_loss": 0.2044, | |
| "mcq_loss": 3.6084, | |
| "prior_kl": 0.03311 | |
| } | |
| ], | |
| "nullspace_merge_audit": { | |
| "modules_merged": 56, | |
| "modules_hash_changed": 56, | |
| "nullspace_projected": true, | |
| "max_orthogonality_error": 3.841705620288849e-09, | |
| "max_frobenius_ratio_pct": 1.627, | |
| "layer_sample": [ | |
| { | |
| "module": "model.layers.10.self_attn.q_proj", | |
| "shape": [ | |
| 896, | |
| 896 | |
| ], | |
| "w0_frob": 19.2065, | |
| "dw_frob": 0.23668, | |
| "frob_ratio_pct": 1.232, | |
| "nullspace_ortho_err": 1.3278622645884752e-09, | |
| "clamped": false, | |
| "sha256_before": "46f7bf7e1965bde1", | |
| "sha256_after": "f79d872da47c90f9" | |
| }, | |
| { | |
| "module": "model.layers.10.self_attn.v_proj", | |
| "shape": [ | |
| 128, | |
| 896 | |
| ], | |
| "w0_frob": 6.8381, | |
| "dw_frob": 0.08981, | |
| "frob_ratio_pct": 1.313, | |
| "nullspace_ortho_err": 1.0622898116707802e-09, | |
| "clamped": false, | |
| "sha256_before": "a4bedd8404473749", | |
| "sha256_after": "ce298686d1a53593" | |
| }, | |
| { | |
| "module": "model.layers.10.self_attn.o_proj", | |
| "shape": [ | |
| 896, | |
| 896 | |
| ], | |
| "w0_frob": 16.2924, | |
| "dw_frob": 0.23753, | |
| "frob_ratio_pct": 1.458, | |
| "nullspace_ortho_err": 1.1568772606551647e-09, | |
| "clamped": false, | |
| "sha256_before": "1870c804cbb395b2", | |
| "sha256_after": "3f74385b26f110cf" | |
| }, | |
| { | |
| "module": "model.layers.10.mlp.down_proj", | |
| "shape": [ | |
| 896, | |
| 4864 | |
| ], | |
| "w0_frob": 36.6857, | |
| "dw_frob": 0.23335, | |
| "frob_ratio_pct": 0.636, | |
| "nullspace_ortho_err": 2.473825588822365e-10, | |
| "clamped": false, | |
| "sha256_before": "b0a5936ec8de3e1f", | |
| "sha256_after": "119a822fa49e5203" | |
| }, | |
| { | |
| "module": "model.layers.11.self_attn.q_proj", | |
| "shape": [ | |
| 896, | |
| 896 | |
| ], | |
| "w0_frob": 18.4899, | |
| "dw_frob": 0.23927, | |
| "frob_ratio_pct": 1.294, | |
| "nullspace_ortho_err": 1.2441887520253658e-09, | |
| "clamped": false, | |
| "sha256_before": "000ae2d2ac3f6bab", | |
| "sha256_after": "2bafa7f73799cf2a" | |
| }, | |
| { | |
| "module": "model.layers.11.self_attn.v_proj", | |
| "shape": [ | |
| 128, | |
| 896 | |
| ], | |
| "w0_frob": 5.7194, | |
| "dw_frob": 0.09306, | |
| "frob_ratio_pct": 1.627, | |
| "nullspace_ortho_err": 1.6007106751203537e-09, | |
| "clamped": false, | |
| "sha256_before": "e8b86d80f07b6700", | |
| "sha256_after": "6c8aee1e9e1253c7" | |
| }, | |
| { | |
| "module": "model.layers.11.self_attn.o_proj", | |
| "shape": [ | |
| 896, | |
| 896 | |
| ], | |
| "w0_frob": 15.6306, | |
| "dw_frob": 0.23056, | |
| "frob_ratio_pct": 1.475, | |
| "nullspace_ortho_err": 2.864908310584724e-09, | |
| "clamped": false, | |
| "sha256_before": "7cbd60e9e1311cb8", | |
| "sha256_after": "2ab87f9575cd8c57" | |
| }, | |
| { | |
| "module": "model.layers.11.mlp.down_proj", | |
| "shape": [ | |
| 896, | |
| 4864 | |
| ], | |
| "w0_frob": 37.3924, | |
| "dw_frob": 0.22778, | |
| "frob_ratio_pct": 0.609, | |
| "nullspace_ortho_err": 3.092281986027956e-10, | |
| "clamped": false, | |
| "sha256_before": "2f0027afd81e973b", | |
| "sha256_after": "5a21ccb3a2add4ce" | |
| }, | |
| { | |
| "module": "model.layers.12.self_attn.q_proj", | |
| "shape": [ | |
| 896, | |
| 896 | |
| ], | |
| "w0_frob": 19.277, | |
| "dw_frob": 0.24757, | |
| "frob_ratio_pct": 1.284, | |
| "nullspace_ortho_err": 2.1009327610954642e-09, | |
| "clamped": false, | |
| "sha256_before": "d1657c07c6fddd0b", | |
| "sha256_after": "6d9069ab2f6ea259" | |
| }, | |
| { | |
| "module": "model.layers.12.self_attn.v_proj", | |
| "shape": [ | |
| 128, | |
| 896 | |
| ], | |
| "w0_frob": 6.3311, | |
| "dw_frob": 0.0934, | |
| "frob_ratio_pct": 1.475, | |
| "nullspace_ortho_err": 1.4260876923799515e-09, | |
| "clamped": false, | |
| "sha256_before": "fdb34b5d85d83079", | |
| "sha256_after": "d8ad2a5721244c0e" | |
| }, | |
| { | |
| "module": "model.layers.12.self_attn.o_proj", | |
| "shape": [ | |
| 896, | |
| 896 | |
| ], | |
| "w0_frob": 16.0116, | |
| "dw_frob": 0.23065, | |
| "frob_ratio_pct": 1.441, | |
| "nullspace_ortho_err": 1.2078089639544487e-09, | |
| "clamped": false, | |
| "sha256_before": "a54a85a46eae3759", | |
| "sha256_after": "e3799d6b13d1397c" | |
| }, | |
| { | |
| "module": "model.layers.12.mlp.down_proj", | |
| "shape": [ | |
| 896, | |
| 4864 | |
| ], | |
| "w0_frob": 38.0377, | |
| "dw_frob": 0.2476, | |
| "frob_ratio_pct": 0.651, | |
| "nullspace_ortho_err": 6.184563972055912e-10, | |
| "clamped": false, | |
| "sha256_before": "227038278d9e15b6", | |
| "sha256_after": "075d11405cade91a" | |
| } | |
| ] | |
| } | |
| } |