/Users/cfruan/miniconda3/envs/mlc-chat-venv/bin/python -m mlc_llm gen_config /Users/Shared/models/Qwen2-Math-72B-Instruct --quantization q0f16 --conv-template chatml --output local_dir/Qwen2-Math-72B-Instruct-q0f16-MLC [2024-08-08 16:29:55] INFO auto_config.py:116: Found model configuration: /Users/Shared/models/Qwen2-Math-72B-Instruct/config.json [2024-08-08 16:29:55] INFO auto_config.py:154: Found model type: qwen2. Use `--model-type` to override. [2024-08-08 16:29:55] INFO qwen2_model.py:50: context_window_size not found in config.json. Falling back to max_position_embeddings (4096) [2024-08-08 16:29:55] INFO qwen2_model.py:67: prefill_chunk_size defaults to 2048 [2024-08-08 16:29:55] INFO config.py:107: Overriding max_batch_size from 1 to 80 [2024-08-08 16:29:55] INFO gen_config.py:147: [generation_config.json] Setting bos_token_id: 151643 [2024-08-08 16:29:55] INFO gen_config.py:147: [generation_config.json] Setting pad_token_id: 151643 [2024-08-08 16:29:55] INFO gen_config.py:147: [generation_config.json] Setting eos_token_id: [151645, 151643] [2024-08-08 16:29:55] INFO gen_config.py:147: [generation_config.json] Setting repetition_penalty: 1.05 [2024-08-08 16:29:55] INFO gen_config.py:147: [generation_config.json] Setting temperature: 0.7 [2024-08-08 16:29:55] INFO gen_config.py:147: [generation_config.json] Setting top_p: 0.8 [2024-08-08 16:29:55] INFO gen_config.py:161: Not found tokenizer config: /Users/Shared/models/Qwen2-Math-72B-Instruct/tokenizer.model [2024-08-08 16:29:55] INFO gen_config.py:159: Found tokenizer config: /Users/Shared/models/Qwen2-Math-72B-Instruct/tokenizer.json. Copying to local_dir/Qwen2-Math-72B-Instruct-q0f16-MLC/tokenizer.json [2024-08-08 16:29:55] INFO gen_config.py:159: Found tokenizer config: /Users/Shared/models/Qwen2-Math-72B-Instruct/vocab.json. Copying to local_dir/Qwen2-Math-72B-Instruct-q0f16-MLC/vocab.json [2024-08-08 16:29:55] INFO gen_config.py:159: Found tokenizer config: /Users/Shared/models/Qwen2-Math-72B-Instruct/merges.txt. Copying to local_dir/Qwen2-Math-72B-Instruct-q0f16-MLC/merges.txt [2024-08-08 16:29:55] INFO gen_config.py:161: Not found tokenizer config: /Users/Shared/models/Qwen2-Math-72B-Instruct/added_tokens.json [2024-08-08 16:29:55] INFO gen_config.py:159: Found tokenizer config: /Users/Shared/models/Qwen2-Math-72B-Instruct/tokenizer_config.json. Copying to local_dir/Qwen2-Math-72B-Instruct-q0f16-MLC/tokenizer_config.json [2024-08-08 16:29:55] INFO gen_config.py:220: Detected tokenizer info: {'token_postproc_method': 'byte_level', 'prepend_space_in_encode': False, 'strip_space_in_decode': False} [2024-08-08 16:29:55] INFO gen_config.py:32: [System default] Setting presence_penalty: 0.0 [2024-08-08 16:29:55] INFO gen_config.py:32: [System default] Setting frequency_penalty: 0.0 [2024-08-08 16:29:55] INFO gen_config.py:248: Dumping configuration file to: local_dir/Qwen2-Math-72B-Instruct-q0f16-MLC/mlc-chat-config.json /Users/cfruan/miniconda3/envs/mlc-chat-venv/bin/python -m mlc_llm convert_weight /Users/Shared/models/Qwen2-Math-72B-Instruct --quantization q0f16 --output local_dir/Qwen2-Math-72B-Instruct-q0f16-MLC [2024-08-08 16:29:56] INFO auto_config.py:116: Found model configuration: /Users/Shared/models/Qwen2-Math-72B-Instruct/config.json [2024-08-08 16:29:56] INFO auto_device.py:88: Not found device: cuda:0 [2024-08-08 16:29:57] INFO auto_device.py:88: Not found device: rocm:0 [2024-08-08 16:29:58] INFO auto_device.py:79: Found device: metal:0 [2024-08-08 16:29:59] INFO auto_device.py:88: Not found device: vulkan:0 [2024-08-08 16:29:59] INFO auto_device.py:88: Not found device: opencl:0 [2024-08-08 16:29:59] INFO auto_device.py:35: Using device: metal:0 [2024-08-08 16:29:59] INFO auto_weight.py:71: Finding weights in: /Users/Shared/models/Qwen2-Math-72B-Instruct [2024-08-08 16:29:59] INFO auto_weight.py:137: Not found Huggingface PyTorch [2024-08-08 16:29:59] INFO auto_weight.py:144: Found source weight format: huggingface-safetensor. Source configuration: /Users/Shared/models/Qwen2-Math-72B-Instruct/model.safetensors.index.json [2024-08-08 16:29:59] INFO auto_weight.py:107: Using source weight configuration: /Users/Shared/models/Qwen2-Math-72B-Instruct/model.safetensors.index.json. Use `--source` to override. [2024-08-08 16:29:59] INFO auto_weight.py:111: Using source weight format: huggingface-safetensor. Use `--source-format` to override. [2024-08-08 16:29:59] INFO auto_config.py:154: Found model type: qwen2. Use `--model-type` to override. [2024-08-08 16:29:59] INFO qwen2_model.py:50: context_window_size not found in config.json. Falling back to max_position_embeddings (4096) [2024-08-08 16:29:59] INFO qwen2_model.py:67: prefill_chunk_size defaults to 2048 Weight conversion with arguments: --config /Users/Shared/models/Qwen2-Math-72B-Instruct/config.json --quantization NoQuantize(name='q0f16', kind='no-quant', model_dtype='float16') --model-type qwen2 --device metal:0 --source /Users/Shared/models/Qwen2-Math-72B-Instruct/model.safetensors.index.json --source-format huggingface-safetensor --output local_dir/Qwen2-Math-72B-Instruct-q0f16-MLC Start storing to cache local_dir/Qwen2-Math-72B-Instruct-q0f16-MLC 0%| | 0/563 [00:00", line 198, in _run_module_as_main File "", line 88, in _run_code File "/Users/cfruan/Documents/mlc-llm/python/mlc_llm/__main__.py", line 64, in main() File "/Users/cfruan/Documents/mlc-llm/python/mlc_llm/__main__.py", line 37, in main cli.main(sys.argv[2:]) File "/Users/cfruan/Documents/mlc-llm/python/mlc_llm/cli/convert_weight.py", line 88, in main convert_weight( File "/Users/cfruan/Documents/mlc-llm/python/mlc_llm/interface/convert_weight.py", line 181, in convert_weight _convert_args(args) File "/Users/cfruan/Documents/mlc-llm/python/mlc_llm/interface/convert_weight.py", line 145, in _convert_args tvmjs.dump_ndarray_cache( File "/Users/cfruan/Documents/tvm/python/tvm/contrib/tvmjs.py", line 296, in dump_ndarray_cache shard_manager.append_or_update( File "/Users/cfruan/Documents/tvm/python/tvm/contrib/tvmjs.py", line 143, in append_or_update self._commit_internal(data, [rec]) File "/Users/cfruan/Documents/tvm/python/tvm/contrib/tvmjs.py", line 184, in _commit_internal outfile.write(data) OSError: [Errno 28] No space left on device 51%|█████ | 286/563 [05:30<05:19, 1.15s/it]