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

Quark dataset importer for fp8 #96

Merged
merged 28 commits into from
Sep 24, 2024
Merged

Quark dataset importer for fp8 #96

merged 28 commits into from
Sep 24, 2024

Conversation

dan-garvey
Copy link
Member

@dan-garvey dan-garvey commented Jul 9, 2024

:edited:

Provides a entry point for quark models that are stored as a safetensor file + config.json. With a little effort this could also be adapted to become the equivalent of the hf importer from gguf without the intermediate step.

I removed a lot of the useful debugging tooling I developed for this because it doesn't play nicely with torch.export, but I imagine a lot of it could be re-added if I guarded it in some way, so I'm keeping a branch with those changes for reference.

Copy link
Contributor

@stellaraccident stellaraccident left a comment

Choose a reason for hiding this comment

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

Please create an import script specific to llama. Probably in models/llama/tools. Fine to start from here but these will diverge a lot

@dan-garvey dan-garvey changed the title (WIP) (DNM) llama fp8 safetensor conversion Quark dataset importer for fp8 Aug 28, 2024
@dan-garvey dan-garvey marked this pull request as ready for review August 29, 2024 18:21
@dan-garvey dan-garvey enabled auto-merge (squash) September 24, 2024 20:39
@dan-garvey dan-garvey merged commit 9f4283d into main Sep 24, 2024
7 checks passed
@dan-garvey dan-garvey deleted the llama_fp8 branch September 24, 2024 20:47
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.

3 participants