mit-han-lab / torchquantum

A PyTorch-based framework for Quantum Classical Simulation, Quantum Machine Learning, Quantum Neural Networks, Parameterized Quantum Circuits with support for easy deployments on real quantum computers.
https://torchquantum.org
MIT License
1.24k stars 184 forks source link

Huggingface #279

Open not-lain opened 2 weeks ago

not-lain commented 2 weeks ago

As discussed in the slack thread

This pr will add an example on how to share AI models to huggingface leveraging the PyTorchModelHubMixin class. why is this a good feature to show to people :

Will add more examples using HF-related tools as I delve deeper into the library.

Let me know if you have any feedback.

Regards Hafedh Hichri

not-lain commented 1 week ago

@GenericP3rson would you be open to reviewing this PR whenever you are free? all code used in this PR can be found here https://colab.research.google.com/drive/1YnKF6TQZtyqqBTOdjgnkmICqddRIArmC?usp=sharing if you want to test it out

not-lain commented 1 day ago

On it 🫡