Skip to content

docs: refresh docs and skills for refactored public API helpers - #337

Merged
justinchuby merged 3 commits into
mainfrom
justinchu/docs-skills-update
Jun 5, 2026
Merged

docs: refresh docs and skills for refactored public API helpers#337
justinchuby merged 3 commits into
mainfrom
justinchu/docs-skills-update

Conversation

@justinchuby

Copy link
Copy Markdown
Member

Updates outdated docs and agent skills to match the public-API + DRY refactor shipped across the themed PRs.

Changes

  • build_from_gguf import — now a top-level export, so docs/api/build_from_gguf.md and docs/getting-started.md use from mobius import build_from_gguf instead of the internal mobius.integrations.gguf path.
  • weight-name-alignment skill — new Shared helpers section documenting the _weight_utils rename helpers, including the new rename_weight_keys and vlm_vision_weights, so future model work reuses them instead of hand-written rename loops.
  • multimodal-models skill — points at the shared vlm_* weight helpers.
  • moe-models skill — notes Qwen35MoEBlock now subclasses Qwen2MoELayer, and fixes stale class file paths (models/qwen.pymodels/qwen35.py).

Dependencies

Depends on the API PRs landing first (the helpers/exports documented here only exist on those branches):

Docs-only; no code or tests affected.

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

Performance Comparison

Comparing 3e99081f853cd6

Model Metric Baseline Current Delta
bert (feature-extraction) model_size_bytes 359 KB 359 KB +0.0%
bert (feature-extraction) num_nodes 60 60 +0.0%
falcon model_size_bytes 364 KB 364 KB +0.0%
falcon num_nodes 66 66 +0.0%
gemma2 model_size_bytes 428 KB 428 KB +0.0%
gemma2 num_nodes 107 107 +0.0%
gpt2 model_size_bytes 388 KB 388 KB +0.0%
gpt2 num_nodes 53 53 +0.0%
llama model_size_bytes 425 KB 425 KB +0.0%
llama num_nodes 61 61 +0.0%
llama (static-cache) model_size_bytes 425 KB 425 KB +0.0%
llama (static-cache) num_nodes 58 58 +0.0%
mamba (ssm-text-generation) model_size_bytes 296 KB 296 KB +0.0%
mamba (ssm-text-generation) num_nodes 98 98 +0.0%
phi3 model_size_bytes 421 KB 421 KB +0.0%
phi3 num_nodes 59 59 +0.0%
phi3 (static-cache) model_size_bytes 421 KB 421 KB +0.0%
phi3 (static-cache) num_nodes 56 56 +0.0%
qwen2 model_size_bytes 425 KB 425 KB +0.0%
qwen2 num_nodes 61 61 +0.0%
qwen2 (static-cache) model_size_bytes 425 KB 425 KB +0.0%
qwen2 (static-cache) num_nodes 58 58 +0.0%
qwen3_5_moe (hybrid-text-generation) model_size_bytes 506 KB 506 KB +0.0%
qwen3_5_moe (hybrid-text-generation) num_nodes 275 275 +0.0%
qwen3_5_text (hybrid-text-generation) model_size_bytes 458 KB 458 KB +0.0%
qwen3_5_text (hybrid-text-generation) num_nodes 129 129 +0.0%
qwen3_5_vl (hybrid-qwen-vl) model_size_bytes 977 KB 977 KB +0.0%
qwen3_5_vl (hybrid-qwen-vl) num_nodes 413 413 +0.0%
t5 (seq2seq) model_size_bytes 836 KB 836 KB +0.0%
t5 (seq2seq) num_nodes 166 166 +0.0%
whisper (speech-to-text) model_size_bytes 1008 KB 1008 KB +0.0%
whisper (speech-to-text) num_nodes 128 128 +0.0%

No performance regressions.

justinchuby added a commit that referenced this pull request Jun 4, 2026
Addresses review feedback on #337: the helper table is introduced as
'mobius._weight_utils centralises...', but _rename_moe_expert_weights is
defined in mobius.models.moe, not _weight_utils. Annotate the row so
readers import it from the correct module.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Justin Chu <11205048+justinchuby@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refreshes documentation and agent-skill guidance to match a refactored public API and DRY weight-preprocessing helpers.

Changes:

  • Update GGUF docs to import build_from_gguf from the top-level mobius package.
  • Extend the weight-name-alignment skill with a “Shared helpers” section and examples for weight preprocessing.
  • Update multimodal-models / moe-models skills to reference shared helpers and refreshed Qwen3.5-MoE structure.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
docs/getting-started.md Updates the GGUF quickstart import path.
docs/api/build_from_gguf.md Updates build_from_gguf import examples.
.agents/skills/weight-name-alignment/SKILL.md Adds a shared-helper table + examples for weight preprocessing.
.agents/skills/multimodal-models/SKILL.md Points multimodal guidance at shared weight helpers.
.agents/skills/moe-models/SKILL.md Refreshes Qwen3.5-MoE class/file references and architectural notes.

Comment thread docs/getting-started.md
Comment thread docs/api/build_from_gguf.md
Comment thread docs/api/build_from_gguf.md
Comment thread .agents/skills/weight-name-alignment/SKILL.md
Comment thread .agents/skills/weight-name-alignment/SKILL.md
Comment thread .agents/skills/weight-name-alignment/SKILL.md
Comment thread .agents/skills/weight-name-alignment/SKILL.md
Comment thread .agents/skills/multimodal-models/SKILL.md
Comment thread .agents/skills/moe-models/SKILL.md
Comment thread .agents/skills/moe-models/SKILL.md
@codecov

codecov Bot commented Jun 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

justinchuby and others added 2 commits June 5, 2026 15:38
Reflect the public-API and DRY changes shipped in PRs #333/#334/#336:

- build_from_gguf is now a top-level export; update the import examples in
  docs/api/build_from_gguf.md and docs/getting-started.md to
  `from mobius import build_from_gguf`.
- weight-name-alignment skill: add a 'Shared helpers' section documenting
  the _weight_utils rename helpers, including the new rename_weight_keys
  and vlm_vision_weights, so future model work reuses them instead of
  hand-written rename loops.
- multimodal-models skill: point at the shared vlm_* weight helpers.
- moe-models skill: note Qwen35MoEBlock subclasses Qwen2MoELayer and fix
  the class file paths (models/qwen.py -> models/qwen35.py).

Depends on #333 (build_from_gguf export), #334 (rename_weight_keys) and
#336 (vlm_vision_weights) landing first.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Justin Chu <11205048+justinchuby@users.noreply.github.com>
Addresses review feedback on #337: the helper table is introduced as
'mobius._weight_utils centralises...', but _rename_moe_expert_weights is
defined in mobius.models.moe, not _weight_utils. Annotate the row so
readers import it from the correct module.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Justin Chu <11205048+justinchuby@users.noreply.github.com>
@justinchuby
justinchuby force-pushed the justinchu/docs-skills-update branch from 863f85c to ef81d1b Compare June 5, 2026 15:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

@justinchuby
justinchuby merged commit 5423421 into main Jun 5, 2026
21 checks passed
@justinchuby
justinchuby deleted the justinchu/docs-skills-update branch June 5, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants