1
0
Fork 0
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

Open
opened 2026-11-01 04:18:02 +07:00 by bsakaguchi · 5 comments
Owner

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:

? Should the repository be public or private? Public
Uploading model...
Error: Error while serializing: I/O error: No space left on device (os error 28)
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: ```txt ? Should the repository be public or private? Public Uploading model... Error: Error while serializing: I/O error: No space left on device (os error 28) ```
Author
Owner

@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?

<!-- gh-comment-id:4160796458 --> @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?
Author
Owner

@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. 😅

<!-- gh-comment-id:4161405107 --> @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. 😅
Author
Owner

@p-e-w commented on GitHub (Mar 31, 2026):

That sounds like a bug in the huggingface_hub library. 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.

<!-- gh-comment-id:4162702262 --> @p-e-w commented on GitHub (Mar 31, 2026): That sounds like a bug in the `huggingface_hub` library. 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.
Author
Owner

@piotreknow02 commented on GitHub (Mar 31, 2026):

I totally get that and will try to get this resolved on huggingface_hub side, thank you.
Would you still consider adding the model card to models saved locally to disk?

<!-- gh-comment-id:4165305947 --> @piotreknow02 commented on GitHub (Mar 31, 2026): I totally get that and will try to get this resolved on `huggingface_hub` side, thank you. Would you still consider adding the model card to models saved locally to disk?
Author
Owner

@p-e-w commented on GitHub (Apr 1, 2026):

Sure, it makes sense that the card would be exported locally as well.

<!-- gh-comment-id:4167910012 --> @p-e-w commented on GitHub (Apr 1, 2026): Sure, it makes sense that the card would be exported locally as well.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
p-e-w/heretic#149
No description provided.