Update Basics tutorials (1xx) for model deprecations#751
Open
nealwu wants to merge 2 commits into
Open
Conversation
- 101: Qwen3.5-9B-Base for raw-token sampling (base model fits the raw tokenizer.encode -> sample demo) - 102: Qwen3.5-4B + Kimi-K2.6; drop deprecated name= arg from save_weights_and_get_sampling_client - 103: align async/gather prose with the code it demonstrates - 104: Qwen3.5-9B-Base + role_colon renderer for the GRPO base model - pyproject: add [tutorials] extra (marimo, matplotlib); tutorials/README: install via tinker-cookbook[tutorials] Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Titles/cross-references still used the old flat numbering (01-05). Align them with the 1xx/2xx/... filenames (e.g. "Tutorial 01" -> 101), matching the already-updated 202-205 titles. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note: branched from #732 to split up into smaller PRs.
Refreshes the Basics tutorials (101–104) off models slated for retirement on 2026-06-12, plus a few fixes found while running each notebook. First in a stack of five PRs splitting the tutorial refresh by section (Basics → Core Concepts → Cookbook Abstractions → Advanced → Deployment); this one is based on
main.Tutorials
Qwen/Qwen3.5-9B-Base. A base model is the right fit for the rawtokenizer.encode → sampledemo (a chat-tuned model drops into thinking mode on raw prompts). Tidy the sampling params.Qwen3-4B-Instruct-2507 → Qwen3.5-4B;Kimi-K2.5 → Kimi-K2.6(with thekimi_k26_disable_thinkingrenderer); drop the deprecatedname=arg fromsave_weights_and_get_sampling_client.asyncio.gatherAPI the code actually uses (it previously described the synchronoussample()/.result()futures API).meta-llama/Llama-3.1-8B → Qwen/Qwen3.5-9B-Basewith therole_colonrenderer (the recommended renderer for this base model).Tooling
[tutorials]optional-dependencies extra (marimo,matplotlib) so a plainpip install tinker-cookbookstays lean; updatetutorials/README.mdto install viatinker-cookbook[tutorials].Testing
Ran the notebooks end-to-end in marimo against the live Tinker service.
Note: diffs include some marimo serialization churn (the
__generated_withversion bump and trimmed cell-return tuples) from running the notebooks.🤖 Generated with Claude Code