Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add automatic checkpoint downloading in Python API #1521

Merged
merged 3 commits into from
Jun 25, 2024
Merged

Conversation

rasbt
Copy link
Collaborator

@rasbt rasbt commented Jun 24, 2024

Adds the following behavior

a) Initialize a random model (no pretrained weights)

LLM(model="microsoft/phi-2", init="random")

b) DEFAULT: Download a model from the hub , but don’t download if a model exists locally via the "microsoft/phi-2" path:

LLM(model="microsoft/phi-2")

c) Load a model from a local directory:

Same as above, if model exists via the "microsoft/phi-2" path:

LLM(model="microsoft/phi-2")

d) Pro user can optionally suppress automatic download

LLM(model="microsoft/phi-2", init="local")

CC @lantiga @williamFalcon

@williamFalcon williamFalcon merged commit 3904167 into main Jun 25, 2024
9 checks passed
@williamFalcon williamFalcon deleted the autodownload branch June 25, 2024 01:13
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.

None yet

2 participants