Skip to main content

FC Quantization

Project description

FeatureCloud Quantization

Model Compression with Quantization

The FC Quantization package provides a comprehensive solution for model compression through quantization techniques. Integrated with federated learning frameworks and built upon the capabilities of PyTorch's quantization functionalities, this package facilitates efficient distributed training suitable for various machine learning tasks.

  1. Configure Quantization:

    • Set up initial quantization settings.
        self.configure_quant(model, backend, quant_typ)
      
  2. Train Local Model:

    • If using post-static quantization:

      • Train the model.
      • Prepare for post-static quantization.
      prep_post_static_quant(model, train_loader, backend)
      
    • Else:

      • Prepare for quantization-aware training.
      pf.prepare_qat(model,backend)        
      
      • Train the prepared model.
  3. Reconfigure Quantization:

    • Update quantization settings for the trained model.
         self.configure_quant(prepared_model, backend, quant_typ)
    
  4. Send Data to Coordinator:

    • Send the prepared model data to the coordinator.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fc-quantization-0.1.1.tar.gz (7.9 kB view details)

Uploaded Source

File details

Details for the file fc-quantization-0.1.1.tar.gz.

File metadata

  • Download URL: fc-quantization-0.1.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for fc-quantization-0.1.1.tar.gz
Algorithm Hash digest
SHA256 776aca814a6fb90c277bd2f12a9b4b5b02e4c9340b720dac25362c9cf1739d9c
MD5 937cddfc13df57b85fcf7cf591b7451d
BLAKE2b-256 ab7611182292a21fb981b2bcbb4173a658480be61e047daef5186c867b724e87

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page