unsloth/studio/backend/models
Daniel Han 58523dc4a9 studio: read GGUF context_length via fast header parser, set max tokens
- Fast GGUF metadata reader (~30-55ms) parses only KV header, skips
  tensor data and large arrays (tokenizer vocab etc)
- Extracts context_length and chat_template from GGUF metadata
- Returns context_length in LoadResponse for frontend to use
- Frontend sets maxTokens to actual context_length for GGUFs (e.g.
  262144 for Qwen3.5-9B, 131072 for Qwen2.5-7B)
- Max Tokens slider shows "Max" and is locked for GGUFs
- Auto-load path also uses actual context_length from load response
- Toast auto-dismiss (5s) and close button for auto-load toast
2026-03-16 11:41:09 +00:00
..
.gitkeep fix: restore models directory files deleted during restructure 2026-02-02 19:36:30 +00:00
__init__.py fix: remove old comments (#4292) 2026-03-14 16:50:13 +04:00
auth.py fix: remove old comments (#4292) 2026-03-14 16:50:13 +04:00
data_recipe.py miscallenous studio (#4293) 2026-03-15 14:42:11 +04:00
datasets.py Final cleanup 2026-03-12 18:28:04 +00:00
export.py Final cleanup 2026-03-12 18:28:04 +00:00
inference.py studio: read GGUF context_length via fast header parser, set max tokens 2026-03-16 11:41:09 +00:00
models.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-03-15 05:24:06 -07:00
responses.py Final cleanup 2026-03-12 18:28:04 +00:00
training.py [Feature] studio: user can upload eval dataset (#4307) 2026-03-16 11:15:50 +04:00
users.py fix: remove old comments (#4292) 2026-03-14 16:50:13 +04:00