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 hashes)

Uploaded Source

Supported by

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