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 #161] [RFC] Towards reproducible results #96

Closed
opened 2026-11-01 04:17:28 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @p-e-w on GitHub (Feb 15, 2026).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/161

Perfectly reproducing results obtained using GPUs is extremely difficult in general because the exact behavior of operations is highly dependent on the environment, but I think we should be able to get close.

Here's my plan:

When uploading a model to HF, Heretic (after obtaining permission from the user) creates a folder reproduce in the repository, containing:

  1. A config.toml file, obtained by serializing the Settings object to TOML, ensuring that Heretic's configuration can be reproduced. We add a seed setting, allowing for reproducible randomness, provided the environment is identical.
  2. A requirements.txt file, containing a snapshot of the installed Python packages with their exact versions.
  3. An environment.txt file, containing information such as:
  • Operating system
  • Python version
  • GPU(s) used
  • CUDA/driver version

The idea is that if you

  1. prepare an environment matching that from (3)
  2. install the packages from (2)
  3. run Heretic using the configuration from (1)

you should be able to reproduce the model, or something very close to it.

Originally created by @p-e-w on GitHub (Feb 15, 2026). Original GitHub issue: https://github.com/p-e-w/heretic/issues/161 Perfectly reproducing results obtained using GPUs is extremely difficult in general because the exact behavior of operations is highly dependent on the environment, but I think we should be able to get close. Here's my plan: When uploading a model to HF, Heretic (after obtaining permission from the user) creates a folder `reproduce` in the repository, containing: 1. A `config.toml` file, obtained by serializing the `Settings` object to TOML, ensuring that Heretic's configuration can be reproduced. We add a `seed` setting, allowing for reproducible randomness, *provided the environment is identical*. 2. A `requirements.txt` file, containing a snapshot of the installed Python packages with their exact versions. 3. An `environment.txt` file, containing information such as: * Operating system * Python version * GPU(s) used * CUDA/driver version The idea is that if you 1. prepare an environment matching that from (3) 2. install the packages from (2) 3. run Heretic using the configuration from (1) you should be able to reproduce the model, or something very close to it.
bsakaguchi 2026-11-01 04:17:28 +07:00
Author
Owner

@saitejagirada commented on GitHub (Feb 17, 2026):

@p-e-w I think adding a seed field into the setting object may be a perfect choice

<!-- gh-comment-id:3914642778 --> @saitejagirada commented on GitHub (Feb 17, 2026): @p-e-w I think adding a seed field into the setting object may be a perfect choice
Author
Owner

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

Implemented in #191.

<!-- gh-comment-id:4229549590 --> @p-e-w commented on GitHub (Apr 11, 2026): Implemented in #191.
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#96
No description provided.