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

feat: Parallelise Model Loading #360

Closed
wants to merge 0 commits into from
Closed

feat: Parallelise Model Loading #360

wants to merge 0 commits into from

Conversation

vovw
Copy link

@vovw vovw commented Oct 17, 2024

test using

exo --preload-models llama-3.2-1b,llama-3.1-8b              

@AlexCheema
Copy link
Contributor

Almost what I envisioned - only thing I would change is to preload after the preemptive download. We don't want to download all possible model shards, only the relevant one.

@vovw
Copy link
Author

vovw commented Oct 18, 2024

@AlexCheema I think I got it, can you review the changes ??

exo/main.py Outdated Show resolved Hide resolved
@vovw
Copy link
Author

vovw commented Oct 19, 2024

tested on a m3 pro

@vovw vovw requested a review from AlexCheema October 19, 2024 23:08
exo/main.py Outdated
Comment on lines 210 to 214
current_shard = preemptively_start_download(str(uuid.uuid4()), json.dumps({
"type": "node_status",
"status": "start_process_prompt",
"shard": shard.to_dict()
}))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't this need to be awaited?

exo/main.py Outdated
"shard": shard.to_dict()
}))
if current_shard:
await node.preload_models([current_shard])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't preemptively_start_download already call preload_models?

@vovw
Copy link
Author

vovw commented Nov 16, 2024

closed this one because it has been >month for the last pr, synced my fork and the new pr is at #466

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.

2 participants