slicktune.models¶
Model and tokenizer loading helpers.
Functions¶
|
Load a causal LM configured for |
|
Load a tokenizer and ensure a pad token exists. |
|
Pick a default compute dtype for the current device. |
Package Contents¶
- slicktune.models.load_model(*, model_id: str, strategy: slicktune.types.Strategy) Any[source]¶
Load a causal LM configured for
strategy.- Parameters:
model_id (str) – Hugging Face model id or local path.
strategy (Strategy) – Parameter-update strategy providing load kwargs.
- Returns:
Any – Hugging Face causal LM (not yet PEFT-wrapped unless strategy does so during apply).