Repository navigation
Laptop fine-tuning (Mac and Linux), backbone policy and order - #3
Merged
Merged
Conversation
…one order - Device choice: DECISIONFORMER_DEVICE (cuda, mps, cpu) when set, else CUDA, then Apple silicon (MPS) for single-process runs, then CPU. Loading for inference follows the same order. Tests stay on CPU. - data.overflow defaults to truncate_state_end for training and evaluation data; loaded and served models still refuse what does not fit. - configs/recipes/local_smollm2.yaml: SmolLM2-135M-Instruct on deciformer-15k with low-memory settings (3.7 GB peak on CPU). - README: backbones are architectures built into transformers (no trust_remote_code models); table ordered dense, mixture of experts, hybrid, encoders; new section for fine-tuning on a laptop. - The training log names the device and precision.
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.
Fine-tuning on a laptop, and a clearer statement of which backbones are supported.
DECISIONFORMER_DEVICE(cuda,mps,cpu) when set; otherwise CUDA, then Apple silicon (MPS) for single-process runs, then CPU. Loading a model for inference follows the same order. MPS and CPU train in float32. Tests pin the CPU.data.overflow: truncate_state_end), so one long row no longer stops a run. Loaded and served models still refuse rather than truncate, as the Decision Index requires.configs/recipes/local_smollm2.yaml: SmolLM2-135M-Instruct on deciformer-15k. It uses micro-batches of 4, a 4,096-token budget per micro-batch, gradient checkpointing, and checkpoints every 100 steps.trust_remote_codeare not supported.Testing
All on Linux (Python 3.12, CPU only, GPU hidden):
DECISIONFORMER_DEVICE=cpu): trained, evaluated, exported, reloaded and answered a request. Peak memory 3.7 GB, about 15 s per step on 6 cores.