/Users/cfruan/miniconda3/envs/mlc-chat-venv/bin/python -m mlc_chat gen_config /Users/Shared/models/CodeLlama-70b-Python-hf --quantization q4f32_1 --conv-template codellama_instruct --output /var/folders/50/mzqbqxqj5fddcby2mg3h334c0000gp/T/tmpv6_x4fhq --context-window-size 16384 [2024-01-30 23:22:54] INFO auto_config.py:115: Found model configuration: /Users/Shared/models/CodeLlama-70b-Python-hf/config.json [2024-01-30 23:22:54] INFO auto_config.py:153: Found model type: llama. Use `--model-type` to override. [2024-01-30 23:22:54] INFO llama_model.py:51: context_window_size not found in config.json. Falling back to max_position_embeddings (4096) [2024-01-30 23:22:54] INFO llama_model.py:71: prefill_chunk_size defaults to context_window_size (4096) [2024-01-30 23:22:54] INFO config.py:106: Overriding context_window_size from 4096 to 16384 [2024-01-30 23:22:54] INFO config.py:106: Overriding max_batch_size from 1 to 80 [2024-01-30 23:22:54] INFO gen_config.py:116: [generation_config.json] Setting bos_token_id: 1 [2024-01-30 23:22:54] INFO gen_config.py:116: [generation_config.json] Setting eos_token_id: 2 [2024-01-30 23:22:54] INFO gen_config.py:128: Found tokenizer config: /Users/Shared/models/CodeLlama-70b-Python-hf/tokenizer.model. Copying to /var/folders/50/mzqbqxqj5fddcby2mg3h334c0000gp/T/tmpv6_x4fhq/tokenizer.model [2024-01-30 23:22:54] INFO gen_config.py:128: Found tokenizer config: /Users/Shared/models/CodeLlama-70b-Python-hf/tokenizer.json. Copying to /var/folders/50/mzqbqxqj5fddcby2mg3h334c0000gp/T/tmpv6_x4fhq/tokenizer.json [2024-01-30 23:22:54] INFO gen_config.py:130: Not found tokenizer config: /Users/Shared/models/CodeLlama-70b-Python-hf/vocab.json [2024-01-30 23:22:54] INFO gen_config.py:130: Not found tokenizer config: /Users/Shared/models/CodeLlama-70b-Python-hf/merges.txt [2024-01-30 23:22:54] INFO gen_config.py:130: Not found tokenizer config: /Users/Shared/models/CodeLlama-70b-Python-hf/added_tokens.json [2024-01-30 23:22:54] INFO gen_config.py:128: Found tokenizer config: /Users/Shared/models/CodeLlama-70b-Python-hf/tokenizer_config.json. Copying to /var/folders/50/mzqbqxqj5fddcby2mg3h334c0000gp/T/tmpv6_x4fhq/tokenizer_config.json [2024-01-30 23:22:54] INFO gen_config.py:69: [System default] Setting pad_token_id: 0 [2024-01-30 23:22:54] INFO gen_config.py:69: [System default] Setting temperature: 0.7 [2024-01-30 23:22:54] INFO gen_config.py:69: [System default] Setting repetition_penalty: 1.0 [2024-01-30 23:22:54] INFO gen_config.py:69: [System default] Setting top_p: 0.95 [2024-01-30 23:22:54] INFO gen_config.py:69: [System default] Setting mean_gen_len: 128 [2024-01-30 23:22:54] INFO gen_config.py:69: [System default] Setting max_gen_len: 512 [2024-01-30 23:22:54] INFO gen_config.py:69: [System default] Setting shift_fill_factor: 0.3 [2024-01-30 23:22:54] INFO gen_config.py:158: Dumping configuration file to: /var/folders/50/mzqbqxqj5fddcby2mg3h334c0000gp/T/tmpv6_x4fhq/mlc-chat-config.json /Users/cfruan/miniconda3/envs/mlc-chat-venv/bin/python -m mlc_chat convert_weight /Users/Shared/models/CodeLlama-70b-Python-hf --quantization q4f32_1 --source-format auto --output /var/folders/50/mzqbqxqj5fddcby2mg3h334c0000gp/T/tmpv6_x4fhq [2024-01-30 23:22:54] INFO auto_config.py:115: Found model configuration: /Users/Shared/models/CodeLlama-70b-Python-hf/config.json [2024-01-30 23:22:55] INFO auto_device.py:85: Not found device: cuda:0 [2024-01-30 23:22:55] INFO auto_device.py:85: Not found device: rocm:0 [2024-01-30 23:22:55] INFO auto_device.py:76: Found device: metal:0 [2024-01-30 23:22:56] INFO auto_device.py:85: Not found device: vulkan:0 [2024-01-30 23:22:56] INFO auto_device.py:85: Not found device: opencl:0 [2024-01-30 23:22:56] INFO auto_device.py:33: Using device: metal:0 [2024-01-30 23:22:56] INFO auto_weight.py:70: Finding weights in: /Users/Shared/models/CodeLlama-70b-Python-hf [2024-01-30 23:22:56] INFO auto_weight.py:120: Found source weight format: huggingface-torch. Source configuration: /Users/Shared/models/CodeLlama-70b-Python-hf/pytorch_model.bin.index.json [2024-01-30 23:22:56] INFO auto_weight.py:143: Found source weight format: huggingface-safetensor. Source configuration: /Users/Shared/models/CodeLlama-70b-Python-hf/model.safetensors.index.json [2024-01-30 23:22:56] INFO auto_weight.py:106: Using source weight configuration: /Users/Shared/models/CodeLlama-70b-Python-hf/pytorch_model.bin.index.json. Use `--source` to override. [2024-01-30 23:22:56] INFO auto_weight.py:110: Using source weight format: huggingface-torch. Use `--source-format` to override. [2024-01-30 23:22:56] INFO auto_config.py:153: Found model type: llama. Use `--model-type` to override. [2024-01-30 23:22:56] INFO llama_model.py:51: context_window_size not found in config.json. Falling back to max_position_embeddings (4096) [2024-01-30 23:22:56] INFO llama_model.py:71: prefill_chunk_size defaults to context_window_size (4096) Weight conversion with arguments: --config /Users/Shared/models/CodeLlama-70b-Python-hf/config.json --quantization GroupQuantize(name='q4f32_1', kind='group-quant', group_size=32, quantize_dtype='int4', storage_dtype='uint32', model_dtype='float32', linear_weight_layout='NK', num_elem_per_storage=8, num_storage_per_group=4, max_int_value=7) --model-type llama --device metal:0 --source /Users/Shared/models/CodeLlama-70b-Python-hf/pytorch_model.bin.index.json --source-format huggingface-torch --output /var/folders/50/mzqbqxqj5fddcby2mg3h334c0000gp/T/tmpv6_x4fhq 0%| | 0/483 [00:00