onecomp 1.2.1__tar.gz → 1.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {onecomp-1.2.1/onecomp.egg-info → onecomp-1.2.2}/PKG-INFO +7 -1
- {onecomp-1.2.1 → onecomp-1.2.2}/README.md +6 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/__version__.py +1 -1
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/model_config.py +7 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/runner.py +8 -8
- {onecomp-1.2.1 → onecomp-1.2.2/onecomp.egg-info}/PKG-INFO +7 -1
- {onecomp-1.2.1 → onecomp-1.2.2}/LICENSE +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/benchmark/llama3-8b-gptq/quant_benchmark.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/benchmark/llama3-8b-jointq/quant_benchmark.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/benchmark/llama3-8b-lpcd-gptq/quant_benchmark.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/benchmark/llama3-8b-qep-gptq/quant_benchmark.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/benchmark/llama3-8b-various/quant_benchmark.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/benchmark/qwen3-14b-gptq/quant_benchmark.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/benchmark/qwen3-14b-jointq/quant_benchmark.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/benchmark/qwen3-8b-gptq/quant_benchmark.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/benchmark/qwen3-8b-jointq/quant_benchmark.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/app/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/app/api/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/app/api/jobs.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/app/constants.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/app/core/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/app/core/config.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/app/core/database.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/app/main.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/app/models/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/app/models/job.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/app/schemas/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/app/schemas/job.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/app/services/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/app/services/huggingface.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/app/services/inference.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/app/services/job_store.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/app/worker/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/app/worker/celery_app.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/app/worker/tasks.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/cpu_patch.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/start_backend.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/dashboard/backend/start_worker.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/example/example_auto_run.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/example/example_autobit.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/example/example_custom_calibration.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/example/example_gptq.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/example/example_jointq.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/example/example_lpcd_gptq.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/example/example_qep_gptq.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/example/example_save_load.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/example/post_process/example_blockwise_ptq.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/example/post_process/example_global_ptq.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/example/post_process/example_global_ptq_dbf.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/example/post_process/example_global_ptq_distributed.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/example/post_process/example_lora_sft.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/example/post_process/example_lora_sft_knowledge.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/example/pre_process/example_llama_preprocess_rtn.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/example/pre_process/example_preprocess_save_load.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/example/vllm_inference/example_autobit_vllm_inference.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/example/vllm_inference/example_gptq_vllm_inference.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/example/vllm_inference/example_jointq_vllm_inference.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/model_validation/autobit/validate_autobit.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/model_validation/autobit_qep/validate_autobit.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/model_validation/gptq/validate_gptq.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/model_validation/gptq/validate_load.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/model_validation/gptq/validate_vllm.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/model_validation/jointq/validate_jointq.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/model_validation/qep_gptq/validate_gptq.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/__main__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/analyzer/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/analyzer/cumulative_error.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/analyzer/quantization_error.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/analyzer/weight_outlier.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/calibration/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/calibration/_cache.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/calibration/c4.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/calibration/calibration_config.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/calibration/calibration_data_loader.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/calibration/chunking.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/calibration/custom.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/calibration/wikitext.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/cli.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/__main__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/conf/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/conf/eval_config.yaml +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/evals/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/evals/base.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/evals/mt_bench/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/evals/mt_bench/adapter.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/evals/mt_bench/data.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/evals/mt_bench/gen_answer.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/evals/mt_bench/judge.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/evals/mt_bench/radar_chart.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/evals/mt_bench/run.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/evals/mt_bench/show_result.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/evals/throughput/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/evals/throughput/adapter.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/evals/throughput/bench.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/evals/throughput/run.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/orchestrator/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/orchestrator/aggregator.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/orchestrator/runner.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/orchestrator/server.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/orchestrator/subprocess_runner.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/run_evaluate.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/schema.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/utils/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/utils/model_utils.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/utils/ports.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/utils/resources.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/eval/utils/secrets.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/log.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/lpcd/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/lpcd/_gradient_solver.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/lpcd/_lpcd_config.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/lpcd/_lpcd_runner.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/lpcd/_metric.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/lpcd/_refiner.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/lpcd/arch/_llama.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/lpcd/arch/_llama_cf.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/lpcd/arch/_qwen3.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/_base.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/_blockwise/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/_blockwise/dbf_block_optimizer.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/_blockwise/dbf_cbq_optimizer.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/_blockwise/generic_block_optimizer.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/_blockwise/gptq_block_optimizer.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/_blockwise/gptq_cbq_optimizer.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/_blockwise/helpers.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/_blockwise/onebit_block_optimizer.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/_blockwise/onebit_cbq_optimizer.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/_global_ptq/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/_global_ptq/core.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/_global_ptq/dbf_adapter.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/_global_ptq/gptq_adapter.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/_global_ptq/helpers.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/_global_ptq/losses.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/_global_ptq/trainer.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/blockwise_ptq.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/global_ptq.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/global_ptq_distributed.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/post_process/post_process_lora_sft.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/pre_process/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/pre_process/hadamard_utils.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/pre_process/modeling_llama.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/pre_process/modeling_qwen3.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/pre_process/optimizer.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/pre_process/prepare_rotated_model.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/pre_process/preprocess_args.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/pre_process/quant_models.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/pre_process/rotation_utils.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/pre_process/train_rotation.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/qep/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/qep/_qep_config.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/qep/_quantize_with_qep.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/qep/_quantize_with_qep_arch.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantized_model_loader.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/_quantizer.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/arb/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/arb/_arb.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/arb/arb_impl.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/autobit/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/autobit/_autobit.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/autobit/activation_stats.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/autobit/dbf_fallback.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/autobit/ilp.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/autobit/manual.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/autobit/visualize.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/cq/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/cq/_cq.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/cq/cq_impl.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/dbf/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/dbf/_dbf.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/dbf/admm_extended.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/dbf/balance.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/dbf/config.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/dbf/dbf_impl.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/dbf/dbf_layer.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/dbf/dbf_original.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/dbf/fine_tune.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/dbf/middle.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/gemlite.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/gptq/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/gptq/_gptq.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/gptq/config.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/gptq/gptq_layer.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/jointq/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/jointq/_jointq.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/jointq/core/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/jointq/core/__version__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/jointq/core/clip.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/jointq/core/error_propagation/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/jointq/core/error_propagation/local_search_advanced.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/jointq/core/error_propagation/quantize_advanced.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/jointq/core/error_propagation/quantizer_advanced.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/jointq/core/local_search.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/jointq/core/quantize.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/jointq/core/quantize_multi_gpu.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/jointq/core/quantizer.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/jointq/core/solution.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/onebit/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/onebit/_onebit.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/onebit/onebit_impl.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/onebit/onebit_layer.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/qbb/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/qbb/_qbb.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/qbb/qbb_impl.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/quip/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/quip/_quip.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/quip/quant_quip.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/quip/quip_impl.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/quip/utils.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/quip/utils_had.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/quip/vector_balance.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/rtn/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/rtn/_rtn.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/rtn/quantizer.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/quantizer/rtn/rtn_impl.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/rotated_model_config.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/runner_methods/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/runner_methods/chunked_quantization.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/runner_methods/jointq_error_propagation.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/runner_methods/multi_gpu_quantization.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/utils/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/utils/accuracy.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/utils/activation_capture.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/utils/activation_check.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/utils/blockwise.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/utils/device.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/utils/dtype.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/utils/model_inputs.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/utils/perplexity.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/utils/quant_config.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/utils/quantization_progress.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/utils/unfuse_moe.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp/utils/vram_estimator.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp.egg-info/SOURCES.txt +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp.egg-info/dependency_links.txt +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp.egg-info/entry_points.txt +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp.egg-info/requires.txt +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/onecomp.egg-info/top_level.txt +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/pyproject.toml +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/scripts/check_copyright_header.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/scripts/check_no_japanese.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/setup.cfg +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/vllm_plugins/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/vllm_plugins/dbf/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/vllm_plugins/dbf/modules/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/vllm_plugins/dbf/modules/gemlite_linear.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/vllm_plugins/dbf/modules/naive.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/vllm_plugins/dbf/vllm_plugin.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/vllm_plugins/gptq/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/vllm_plugins/gptq/constants.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/vllm_plugins/gptq/vllm_plugin.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/vllm_plugins/utils/__init__.py +0 -0
- {onecomp-1.2.1 → onecomp-1.2.2}/vllm_plugins/utils/module.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: onecomp
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.2
|
|
4
4
|
Summary: Python package for LLM compression
|
|
5
5
|
Author: Keiji Kimura
|
|
6
6
|
License: MIT License
|
|
@@ -416,6 +416,12 @@ pip install vllm
|
|
|
416
416
|
See the [vLLM Inference guide](https://FujitsuResearch.github.io/OneCompression/user-guide/vllm-inference/) for details, including Open WebUI setup instructions.
|
|
417
417
|
|
|
418
418
|
|
|
419
|
+
## 📬 Contact Us
|
|
420
|
+
|
|
421
|
+
- For technical questions and feature requests, please use GitHub [Issues](https://github.com/FujitsuResearch/OneCompression/issues).
|
|
422
|
+
- For security vulnerabilities, please **do not** open a public Issue. See our [Security Policy](./SECURITY.md) for how to report them privately.
|
|
423
|
+
- For collaborations, partnerships, and other inquiries, please contact us at [contact-onecompression@cs.jp.fujitsu.com](mailto:contact-onecompression@cs.jp.fujitsu.com).
|
|
424
|
+
|
|
419
425
|
## 📄 License
|
|
420
426
|
|
|
421
427
|
See [LICENSE](./LICENSE) for more details.
|
|
@@ -311,6 +311,12 @@ pip install vllm
|
|
|
311
311
|
See the [vLLM Inference guide](https://FujitsuResearch.github.io/OneCompression/user-guide/vllm-inference/) for details, including Open WebUI setup instructions.
|
|
312
312
|
|
|
313
313
|
|
|
314
|
+
## 📬 Contact Us
|
|
315
|
+
|
|
316
|
+
- For technical questions and feature requests, please use GitHub [Issues](https://github.com/FujitsuResearch/OneCompression/issues).
|
|
317
|
+
- For security vulnerabilities, please **do not** open a public Issue. See our [Security Policy](./SECURITY.md) for how to report them privately.
|
|
318
|
+
- For collaborations, partnerships, and other inquiries, please contact us at [contact-onecompression@cs.jp.fujitsu.com](mailto:contact-onecompression@cs.jp.fujitsu.com).
|
|
319
|
+
|
|
314
320
|
## 📄 License
|
|
315
321
|
|
|
316
322
|
See [LICENSE](./LICENSE) for more details.
|
|
@@ -11,6 +11,7 @@ from logging import getLogger
|
|
|
11
11
|
import torch
|
|
12
12
|
from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer
|
|
13
13
|
|
|
14
|
+
from .utils.device import get_default_device
|
|
14
15
|
from .utils.dtype import needs_bfloat16
|
|
15
16
|
|
|
16
17
|
try:
|
|
@@ -114,6 +115,12 @@ class ModelConfig:
|
|
|
114
115
|
self.logger.info("Model loaded with dtype=%s", next(model.parameters()).dtype)
|
|
115
116
|
return model
|
|
116
117
|
|
|
118
|
+
def get_device(self) -> torch.device:
|
|
119
|
+
"""Return a concrete torch.device for PyTorch operations."""
|
|
120
|
+
if self.device == "auto":
|
|
121
|
+
return get_default_device()
|
|
122
|
+
return torch.device(self.device)
|
|
123
|
+
|
|
117
124
|
def load_tokenizer(self):
|
|
118
125
|
"""Load the tokenizer"""
|
|
119
126
|
|
|
@@ -327,7 +327,7 @@ class Runner:
|
|
|
327
327
|
|
|
328
328
|
# MPS device validation: only GPTQ (or AutoBitQuantizer whose
|
|
329
329
|
# candidates are all GPTQ, without DBF fallback) is supported on MPS
|
|
330
|
-
device = self.model_config.
|
|
330
|
+
device = self.model_config.get_device()
|
|
331
331
|
if is_mps_device(device):
|
|
332
332
|
if self.multi_gpu:
|
|
333
333
|
raise ValueError("multi_gpu is not supported on MPS device.")
|
|
@@ -1139,24 +1139,24 @@ class Runner:
|
|
|
1139
1139
|
tokenizer = self.model_config.load_tokenizer()
|
|
1140
1140
|
original_result = eval_function(model=model, tokenizer=tokenizer, **eval_args)
|
|
1141
1141
|
del model, tokenizer
|
|
1142
|
-
empty_cache(self.model_config.
|
|
1142
|
+
empty_cache(self.model_config.get_device())
|
|
1143
1143
|
|
|
1144
1144
|
if quantized_model:
|
|
1145
1145
|
try:
|
|
1146
1146
|
logger.info("Evaluating quantized model (%s)...", eval_name)
|
|
1147
1147
|
if self.quantized_model is not None:
|
|
1148
1148
|
model = self.quantized_model
|
|
1149
|
-
model.to(self.model_config.
|
|
1149
|
+
model.to(self.model_config.get_device())
|
|
1150
1150
|
tokenizer = self.model_config.load_tokenizer()
|
|
1151
1151
|
quantized_result = eval_function(model=model, tokenizer=tokenizer, **eval_args)
|
|
1152
1152
|
model.to("cpu")
|
|
1153
1153
|
del tokenizer
|
|
1154
1154
|
else:
|
|
1155
1155
|
model, tokenizer = self.create_quantized_model(quantizer=quantizer)
|
|
1156
|
-
model.to(self.model_config.
|
|
1156
|
+
model.to(self.model_config.get_device())
|
|
1157
1157
|
quantized_result = eval_function(model=model, tokenizer=tokenizer, **eval_args)
|
|
1158
1158
|
del model, tokenizer
|
|
1159
|
-
empty_cache(self.model_config.
|
|
1159
|
+
empty_cache(self.model_config.get_device())
|
|
1160
1160
|
except NotImplementedError:
|
|
1161
1161
|
logger.warning(
|
|
1162
1162
|
"This quantization method does not support creating a quantized model; "
|
|
@@ -1171,7 +1171,7 @@ class Runner:
|
|
|
1171
1171
|
self.update_model_weights(model, quantizer=quantizer)
|
|
1172
1172
|
dequantized_result = eval_function(model=model, tokenizer=tokenizer, **eval_args)
|
|
1173
1173
|
del model, tokenizer
|
|
1174
|
-
empty_cache(self.model_config.
|
|
1174
|
+
empty_cache(self.model_config.get_device())
|
|
1175
1175
|
|
|
1176
1176
|
return original_result, dequantized_result, quantized_result
|
|
1177
1177
|
|
|
@@ -2117,7 +2117,7 @@ class Runner:
|
|
|
2117
2117
|
)
|
|
2118
2118
|
# Release fragmented GPU memory from previous operations (e.g., run())
|
|
2119
2119
|
gc.collect()
|
|
2120
|
-
empty_cache(self.model_config.
|
|
2120
|
+
empty_cache(self.model_config.get_device())
|
|
2121
2121
|
|
|
2122
2122
|
model = self.model_config.load_model()
|
|
2123
2123
|
input_device = next(model.parameters()).device
|
|
@@ -2141,7 +2141,7 @@ class Runner:
|
|
|
2141
2141
|
)
|
|
2142
2142
|
# Release fragmented GPU memory from previous operations (e.g., run())
|
|
2143
2143
|
gc.collect()
|
|
2144
|
-
empty_cache(self.model_config.
|
|
2144
|
+
empty_cache(self.model_config.get_device())
|
|
2145
2145
|
|
|
2146
2146
|
model = self.model_config.load_model()
|
|
2147
2147
|
input_device = next(model.parameters()).device
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: onecomp
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.2
|
|
4
4
|
Summary: Python package for LLM compression
|
|
5
5
|
Author: Keiji Kimura
|
|
6
6
|
License: MIT License
|
|
@@ -416,6 +416,12 @@ pip install vllm
|
|
|
416
416
|
See the [vLLM Inference guide](https://FujitsuResearch.github.io/OneCompression/user-guide/vllm-inference/) for details, including Open WebUI setup instructions.
|
|
417
417
|
|
|
418
418
|
|
|
419
|
+
## 📬 Contact Us
|
|
420
|
+
|
|
421
|
+
- For technical questions and feature requests, please use GitHub [Issues](https://github.com/FujitsuResearch/OneCompression/issues).
|
|
422
|
+
- For security vulnerabilities, please **do not** open a public Issue. See our [Security Policy](./SECURITY.md) for how to report them privately.
|
|
423
|
+
- For collaborations, partnerships, and other inquiries, please contact us at [contact-onecompression@cs.jp.fujitsu.com](mailto:contact-onecompression@cs.jp.fujitsu.com).
|
|
424
|
+
|
|
419
425
|
## 📄 License
|
|
420
426
|
|
|
421
427
|
See [LICENSE](./LICENSE) for more details.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|