Repository navigation
Release opt-in full-model PyTorch wrapper and Metal SiLU fix - #8
Merged
Merged
Conversation
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.
This releases the tested resident full-model PyTorch wrapper and Metal SiLU/SwiGLU correction. The wrapper remains explicitly opt-in: importing
vitni_torchdoes not open a model, replacetorch.matmul/normal modules, or change global backend and determinism settings. Callers must constructVitniModel; the default is CPU, and optimized Metal requiresbackend='metal', optimized=True.The wrapper retains native model weights/metadata/KV allocations, returns CPU float32 logits and uses the existing generation/receipt driver. Native autorelease scopes release temporary Metal command objects between requests. The SiLU correction preserves the existing CPU rounded formula for finite-input overflow, large-divisor and subnormal cases. CPU numerical rules and published anchors are unchanged.
Validation recorded on the M3 Max research branch:
Release preparation adds a fresh-process opt-in check and real TinyLlama full-model CPU coverage to Linux/macOS package CI, with CPU-only mode labeled explicitly. Python remains experimental 0.1.0a2, distributed through GitHub assets/tagged source. The Rust release is v0.3.3. Release notes document eager/unbatched CPU tensor I/O, no CUDA/autograd/arbitrary-model conversion, context/type limits and the tested numerical scope.
The final wheel, rebuilt from the source distribution and installed in isolation, passed 58 CPU/MPS/native Metal tests with strict hardware requirements. Its separate TinyLlama CPU-contract check passed all 11 tests locally.
cargo package --allow-dirty --offlineverified the Rust package build.See
docs/releases/v0.3.3.mdand the preserved research evidence for runtime definitions, raw observations and hashes. No PyTorch maintainer outreach or social posting is part of this release.