|
317 | 317 | "\n", |
318 | 318 | " # Parameter configuration for PTQ\n", |
319 | 319 | " param_items = [\n", |
320 | | - " ['target_platform_version', 'v1'], # The version of the TPC to use.\n", |
| 320 | + " ['sdsp_version', '3.14'], # The version of the SDSP converter.\n", |
321 | 321 | " ['activation_error_method', QuantizationErrorMethod.MSE], # Error metric for activation.\n", |
322 | 322 | " ['weights_bias_correction', True], # Enable bias correction for weights.\n", |
323 | 323 | " ['z_threshold', float('inf')], # Threshold for zero-point quantization.\n", |
|
382 | 382 | "\n", |
383 | 383 | " # Parameter configuration for PTQ with Mixed Precision\n", |
384 | 384 | " param_items = [\n", |
385 | | - " ['target_platform_version', 'v1'], # The version of the TPC to use.\n", |
| 385 | + " ['sdsp_version', '3.14'], # The version of the SDSP converter.\n", |
386 | 386 | " ['num_of_images', 5], # Number of epochs for gradient-based fine-tuning.\n", |
387 | 387 | " ['use_hessian_based_scores', False], # Use Hessian-based sensitivity scores for layer importance.\n", |
388 | 388 | " ['weights_compression_ratio', 0.75], # Target compression ratio for model weights (75% of original size.\n", |
|
446 | 446 | " # Parameter configuration for GPTQ\n", |
447 | 447 | " param_items = [\n", |
448 | 448 | " # Platform configuration\n", |
449 | | - " ['target_platform_version', 'v1'], # The version of the TPC to use.\n", |
| 449 | + " ['sdsp_version', '3.14'], # The version of the SDSP converter.\n", |
450 | 450 | " ['n_epochs', 5], # Number of epochs for gradient-based fine-tuning.\n", |
451 | 451 | " ['optimizer', None], # Optimizer to use during fine-tuning.\n", |
452 | 452 | " ['save_model_path', './qmodel_GPTQ_Keras.keras'] # Path to save the quantized model.\n", |
|
512 | 512 | " # Parameter configuration for GPTQ with Mixed Precision\n", |
513 | 513 | " param_items = [\n", |
514 | 514 | " # Platform configuration\n", |
515 | | - " ['target_platform_version', 'v1'], # The version of the TPC to use.\n", |
| 515 | + " ['sdsp_version', '3.14'], # The version of the SDSP converter.\n", |
516 | 516 | " ['n_epochs', 5], # Number of epochs for gradient-based fine-tuning.\n", |
517 | 517 | " ['optimizer', None], # Optimizer to use during fine-tuning.\n", |
518 | 518 | " ['num_of_images', 5], # Number of images to use for calibration.\n", |
|
0 commit comments