python -m mlc_chat gen_config /ssd1/cfruan/mlc-llm-repos/mlc-llm-head/dist/models/phi-2 --quantization q0f16 --conv-template phi-2 --output /tmp/tmpo_r6sy3y [2023-12-28 06:49:13] INFO auto_config.py:115: Found model configuration: /ssd1/cfruan/mlc-llm-repos/mlc-llm-head/dist/models/phi-2/config.json [2023-12-28 06:49:13] INFO auto_config.py:151: Found model type: phi-msft. Use `--model-type` to override. [2023-12-28 06:49:13] INFO phi_model.py:59: context_window_size not found in config.json. Falling back to n_positions (2048) [2023-12-28 06:49:13] INFO gen_config.py:129: Not found tokenizer config: /ssd1/cfruan/mlc-llm-repos/mlc-llm-head/dist/models/phi-2/tokenizer.model [2023-12-28 06:49:13] INFO gen_config.py:127: Found tokenizer config: /ssd1/cfruan/mlc-llm-repos/mlc-llm-head/dist/models/phi-2/tokenizer.json. Copying to /tmp/tmpo_r6sy3y/tokenizer.json [2023-12-28 06:49:13] INFO gen_config.py:127: Found tokenizer config: /ssd1/cfruan/mlc-llm-repos/mlc-llm-head/dist/models/phi-2/vocab.json. Copying to /tmp/tmpo_r6sy3y/vocab.json [2023-12-28 06:49:13] INFO gen_config.py:127: Found tokenizer config: /ssd1/cfruan/mlc-llm-repos/mlc-llm-head/dist/models/phi-2/merges.txt. Copying to /tmp/tmpo_r6sy3y/merges.txt [2023-12-28 06:49:13] INFO gen_config.py:127: Found tokenizer config: /ssd1/cfruan/mlc-llm-repos/mlc-llm-head/dist/models/phi-2/added_tokens.json. Copying to /tmp/tmpo_r6sy3y/added_tokens.json [2023-12-28 06:49:13] INFO gen_config.py:127: Found tokenizer config: /ssd1/cfruan/mlc-llm-repos/mlc-llm-head/dist/models/phi-2/tokenizer_config.json. Copying to /tmp/tmpo_r6sy3y/tokenizer_config.json [2023-12-28 06:49:13] INFO gen_config.py:69: [System default] Setting pad_token_id: 0 [2023-12-28 06:49:13] INFO gen_config.py:69: [System default] Setting bos_token_id: 1 [2023-12-28 06:49:13] INFO gen_config.py:69: [System default] Setting eos_token_id: 2 [2023-12-28 06:49:13] INFO gen_config.py:69: [System default] Setting temperature: 0.7 [2023-12-28 06:49:13] INFO gen_config.py:69: [System default] Setting repetition_penalty: 1.0 [2023-12-28 06:49:13] INFO gen_config.py:69: [System default] Setting top_p: 0.95 [2023-12-28 06:49:13] INFO gen_config.py:69: [System default] Setting mean_gen_len: 128 [2023-12-28 06:49:13] INFO gen_config.py:69: [System default] Setting max_gen_len: 512 [2023-12-28 06:49:13] INFO gen_config.py:69: [System default] Setting shift_fill_factor: 0.3 [2023-12-28 06:49:13] INFO gen_config.py:157: Dumping configuration file to: /tmp/tmpo_r6sy3y/mlc-chat-config.json python -m mlc_chat convert_weight /ssd1/cfruan/mlc-llm-repos/mlc-llm-head/dist/models/phi-2 --quantization q0f16 --source-format auto --output /tmp/tmpo_r6sy3y [2023-12-28 06:49:13] INFO auto_config.py:115: Found model configuration: /ssd1/cfruan/mlc-llm-repos/mlc-llm-head/dist/models/phi-2/config.json [2023-12-28 06:49:14] INFO auto_device.py:75: Found device: cuda:0 [2023-12-28 06:49:14] INFO auto_device.py:75: Found device: cuda:1 [2023-12-28 06:49:14] INFO auto_device.py:84: Not found device: rocm:0 [2023-12-28 06:49:14] INFO auto_device.py:84: Not found device: metal:0 [2023-12-28 06:49:14] INFO auto_device.py:75: Found device: vulkan:0 [2023-12-28 06:49:14] INFO auto_device.py:75: Found device: vulkan:1 [2023-12-28 06:49:14] INFO auto_device.py:75: Found device: vulkan:2 [2023-12-28 06:49:15] INFO auto_device.py:84: Not found device: opencl:0 [2023-12-28 06:49:15] INFO auto_device.py:33: Using device: cuda:0 [2023-12-28 06:49:15] INFO auto_weight.py:70: Finding weights in: /ssd1/cfruan/mlc-llm-repos/mlc-llm-head/dist/models/phi-2 [2023-12-28 06:49:15] INFO auto_weight.py:136: Not found Huggingface PyTorch [2023-12-28 06:49:15] INFO auto_weight.py:143: Found source weight format: huggingface-safetensor. Source configuration: /ssd1/cfruan/mlc-llm-repos/mlc-llm-head/dist/models/phi-2/model.safetensors.index.json [2023-12-28 06:49:15] INFO auto_weight.py:106: Using source weight configuration: /ssd1/cfruan/mlc-llm-repos/mlc-llm-head/dist/models/phi-2/model.safetensors.index.json. Use `--source` to override. [2023-12-28 06:49:15] INFO auto_weight.py:110: Using source weight format: huggingface-safetensor. Use `--source-format` to override. [2023-12-28 06:49:15] INFO auto_config.py:151: Found model type: phi-msft. Use `--model-type` to override. [2023-12-28 06:49:15] INFO phi_model.py:59: context_window_size not found in config.json. Falling back to n_positions (2048) Weight conversion with arguments: --config /ssd1/cfruan/mlc-llm-repos/mlc-llm-head/dist/models/phi-2/config.json --quantization NoQuantize(name='q0f16', kind='no-quant', model_dtype='float16') --model-type phi-msft --device cuda:0 --source /ssd1/cfruan/mlc-llm-repos/mlc-llm-head/dist/models/phi-2/model.safetensors.index.json --source-format huggingface-safetensor --output /tmp/tmpo_r6sy3y 0%| | 0/325 [00:00