如果已安装vector_quantize_pytorch但仍然收到“no module named 'vector_quantize_pytorch'”的错误,可能是因为Python环境配置不正确。确保您的Python解释器指向了正确的环境(如虚拟环境或conda环境),并且该环境中已安装了该库。 如果'vector_quantize_pytorch'非标准库或已弃用,提供替代方案或建议: 如果vector_quantize...
quantize_groups = 1 Using /home/bryce/.cache/torch_extensions/py39_cu117 as PyTorch extensions root... Detected CUDA files, patching ldflags Emitting ninja build file /home/bryce/.cache/torch_extensions/py39_cu117/transformer_inference/build.ninja... Building extension module transformer_inference...
[pip3] vector-quantize-pytorch==1.0.1 [conda] blas 1.0 mkl https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main [conda] cudatoolkit 9.0 h41a26b3_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main [conda] libblas 3.9.0 12_osx64_mkl conda-forge [conda] libcblas 3.9.0 12...
mod: IRModule, named_params: List[Tuple[str, nn.Parameter]], args: CompileArgs, model_config, ) -> None: def _metadata(): metadata = { "quantization": args.quantization.name, "model_type": args.model.name, "params": [ { "name": name, "shape": list(param.shape), "dtype": par...