mirror of
https://github.com/p-e-w/heretic.git
synced 2026-12-03 18:42:57 +07:00
[GH-ISSUE #258] Generate model card when exporting model to local folder #149
Labels
No labels
bug
enhancement
enhancement
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
p-e-w/heretic#149
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @piotreknow02 on GitHub (Mar 30, 2026).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/258
I'm using a 32GB RAM / 96GB VRAM system so my system swap space is 16GB therefore I'm running into I/O error below while trying to upload to huggingface. As a workarround for that I can save to disk first and uploading to hf manually, but it doesn't give me the nice model card with performance and abliteration parameters summary. Could there be a way to generate this README for local save? or generate it separately?
Output while trying to upload to hf:
@p-e-w commented on GitHub (Mar 31, 2026):
I don't quite understand what you are asking here. From the error message, it looks like you ran out of disk space, which breaks basically every other piece of software in existence as well.
What do you expect to happen here? And what does this have to do with the model card?
@piotreknow02 commented on GitHub (Mar 31, 2026):
The thing is I'm not out of disk space. When I save the model locally everything works as you'd expect. The "push to hf" function seems to save the model to temporary storage which on MacOS and Linux systems uses a different filesystem which is typically set to half of system RAM, in my case 16GB which is not enough to save the model.
I when I save the model to disk and then upload to hf manually it doesn't generate the model card.
I was suggesting making some workarround for that, hope I explained it more clearly this time. 😅
@p-e-w commented on GitHub (Mar 31, 2026):
That sounds like a bug in the
huggingface_hublibrary. Heretic doesn't do anything special here, it just uses the official HF Python client for uploading the model, as recommended in the official documentation.It is my policy to not work around bugs in upstream libraries. Please report this issue where it belongs, so it can be fixed where it should be fixed.
@piotreknow02 commented on GitHub (Mar 31, 2026):
I totally get that and will try to get this resolved on
huggingface_hubside, thank you.Would you still consider adding the model card to models saved locally to disk?
@p-e-w commented on GitHub (Apr 1, 2026):
Sure, it makes sense that the card would be exported locally as well.