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:feat: Added logging, parallel processing, and CPU processing option for FP8 to BF16 conversion #461

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anand-144
Copy link

  • Implemented logging to track the conversion process and handle missing tensors more effectively.
  • Introduced parallel processing using ThreadPoolExecutor to speed up large model conversions.
  • Added an option to use CPU (--use-cpu) instead of GPU for environments without CUDA support.
  • Optimized memory usage by caching only the two most recently used files.
  • Updated progress tracking with tqdm for better visibility.
  • Ensured the model.safetensors.index.json file correctly removes _scale_inv references.
  • These enhancements improve efficiency, usability, and robustness of the FP8 to BF16 conversion process.

@anand-144 anand-144 closed this Jan 29, 2025
@anand-144 anand-144 reopened this Jan 29, 2025
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.

1 participant