Ogamon's picture
second commit
5e18707 verified
[INFO|tokenization_utils_base.py:2159] 2024-07-16 09:45:07,144 >> loading file tokenizer.json
[INFO|tokenization_utils_base.py:2159] 2024-07-16 09:45:07,144 >> loading file added_tokens.json
[INFO|tokenization_utils_base.py:2159] 2024-07-16 09:45:07,144 >> loading file special_tokens_map.json
[INFO|tokenization_utils_base.py:2159] 2024-07-16 09:45:07,144 >> loading file tokenizer_config.json
[INFO|loader.py:50] 2024-07-16 09:45:07,193 >> Loading dataset 0716_truthfulqa_benchmark_test.json...
07/16/2024 09:45:07 - INFO - llamafactory.hparams.parser - Process rank: 4, device: cuda:4, n_gpu: 1, distributed training: True, compute dtype: None
07/16/2024 09:45:07 - INFO - llamafactory.hparams.parser - Process rank: 2, device: cuda:2, n_gpu: 1, distributed training: True, compute dtype: None
07/16/2024 09:45:07 - INFO - llamafactory.hparams.parser - Process rank: 7, device: cuda:7, n_gpu: 1, distributed training: True, compute dtype: None
07/16/2024 09:45:07 - INFO - llamafactory.hparams.parser - Process rank: 3, device: cuda:3, n_gpu: 1, distributed training: True, compute dtype: None
07/16/2024 09:45:07 - INFO - llamafactory.hparams.parser - Process rank: 1, device: cuda:1, n_gpu: 1, distributed training: True, compute dtype: None
07/16/2024 09:45:07 - INFO - llamafactory.hparams.parser - Process rank: 6, device: cuda:6, n_gpu: 1, distributed training: True, compute dtype: None
07/16/2024 09:45:07 - INFO - llamafactory.hparams.parser - Process rank: 5, device: cuda:5, n_gpu: 1, distributed training: True, compute dtype: None
07/16/2024 09:45:08 - INFO - llamafactory.data.loader - Loading dataset 0716_truthfulqa_benchmark_test.json...
07/16/2024 09:45:08 - INFO - llamafactory.data.loader - Loading dataset 0716_truthfulqa_benchmark_test.json...
07/16/2024 09:45:08 - INFO - llamafactory.data.loader - Loading dataset 0716_truthfulqa_benchmark_test.json...
07/16/2024 09:45:08 - INFO - llamafactory.data.loader - Loading dataset 0716_truthfulqa_benchmark_test.json...
07/16/2024 09:45:08 - INFO - llamafactory.data.loader - Loading dataset 0716_truthfulqa_benchmark_test.json...
07/16/2024 09:45:08 - INFO - llamafactory.data.loader - Loading dataset 0716_truthfulqa_benchmark_test.json...
07/16/2024 09:45:08 - INFO - llamafactory.data.loader - Loading dataset 0716_truthfulqa_benchmark_test.json...
[INFO|configuration_utils.py:731] 2024-07-16 09:45:10,115 >> loading configuration file saves/LLaMA2-7B-Chat/full/train_2024-07-16-09-05-28_llama2/config.json
[INFO|configuration_utils.py:800] 2024-07-16 09:45:10,118 >> Model config LlamaConfig {
"_name_or_path": "saves/LLaMA2-7B-Chat/full/train_2024-07-16-09-05-28_llama2",
"architectures": [
"LlamaForCausalLM"
],
"attention_bias": false,
"attention_dropout": 0.0,
"bos_token_id": 1,
"eos_token_id": 2,
"hidden_act": "silu",
"hidden_size": 4096,
"initializer_range": 0.02,
"intermediate_size": 11008,
"max_position_embeddings": 4096,
"mlp_bias": false,
"model_type": "llama",
"num_attention_heads": 32,
"num_hidden_layers": 32,
"num_key_value_heads": 32,
"pretraining_tp": 1,
"rms_norm_eps": 1e-05,
"rope_scaling": null,
"rope_theta": 10000.0,
"tie_word_embeddings": false,
"torch_dtype": "bfloat16",
"transformers_version": "4.42.3",
"use_cache": false,
"vocab_size": 32000
}
[INFO|patcher.py:81] 2024-07-16 09:45:10,118 >> Using KV cache for faster generation.
[INFO|modeling_utils.py:3553] 2024-07-16 09:45:10,162 >> loading weights file saves/LLaMA2-7B-Chat/full/train_2024-07-16-09-05-28_llama2/model.safetensors.index.json
[INFO|modeling_utils.py:1531] 2024-07-16 09:45:10,162 >> Instantiating LlamaForCausalLM model under default dtype torch.bfloat16.
[INFO|configuration_utils.py:1000] 2024-07-16 09:45:10,163 >> Generate config GenerationConfig {
"bos_token_id": 1,
"eos_token_id": 2
}
07/16/2024 09:45:10 - INFO - llamafactory.model.patcher - Using KV cache for faster generation.
07/16/2024 09:45:10 - INFO - llamafactory.model.patcher - Using KV cache for faster generation.
07/16/2024 09:45:10 - INFO - llamafactory.model.patcher - Using KV cache for faster generation.
07/16/2024 09:45:10 - INFO - llamafactory.model.patcher - Using KV cache for faster generation.
07/16/2024 09:45:10 - INFO - llamafactory.model.patcher - Using KV cache for faster generation.
07/16/2024 09:45:10 - INFO - llamafactory.model.patcher - Using KV cache for faster generation.
07/16/2024 09:45:10 - INFO - llamafactory.model.patcher - Using KV cache for faster generation.
[INFO|modeling_utils.py:4364] 2024-07-16 09:45:13,329 >> All model checkpoint weights were used when initializing LlamaForCausalLM.
[INFO|modeling_utils.py:4372] 2024-07-16 09:45:13,329 >> All the weights of LlamaForCausalLM were initialized from the model checkpoint at saves/LLaMA2-7B-Chat/full/train_2024-07-16-09-05-28_llama2.
If your task is similar to the task the model of the checkpoint was trained on, you can already use LlamaForCausalLM for predictions without further training.
[INFO|configuration_utils.py:953] 2024-07-16 09:45:13,333 >> loading configuration file saves/LLaMA2-7B-Chat/full/train_2024-07-16-09-05-28_llama2/generation_config.json
[INFO|configuration_utils.py:1000] 2024-07-16 09:45:13,333 >> Generate config GenerationConfig {
"bos_token_id": 1,
"do_sample": true,
"eos_token_id": 2,
"max_length": 4096,
"pad_token_id": 0,
"temperature": 0.6,
"top_p": 0.9
}
[INFO|attention.py:80] 2024-07-16 09:45:13,339 >> Using torch SDPA for faster training and inference.
[INFO|loader.py:196] 2024-07-16 09:45:13,344 >> all params: 6,738,415,616
[INFO|trainer.py:3788] 2024-07-16 09:45:13,449 >>
***** Running Prediction *****
[INFO|trainer.py:3790] 2024-07-16 09:45:13,449 >> Num examples = 1243
[INFO|trainer.py:3793] 2024-07-16 09:45:13,449 >> Batch size = 2
[WARNING|logging.py:328] 2024-07-16 09:45:14,110 >> We detected that you are passing `past_key_values` as a tuple and this is deprecated and will be removed in v4.43. Please use an appropriate `Cache` class (https://huggingface.co/docs/transformers/v4.41.3/en/internal/generation_utils#transformers.Cache)
07/16/2024 09:45:14 - INFO - llamafactory.model.model_utils.attention - Using torch SDPA for faster training and inference.
07/16/2024 09:45:14 - INFO - llamafactory.model.loader - all params: 6,738,415,616
07/16/2024 09:45:14 - INFO - llamafactory.model.model_utils.attention - Using torch SDPA for faster training and inference.
07/16/2024 09:45:14 - INFO - llamafactory.model.model_utils.attention - Using torch SDPA for faster training and inference.
07/16/2024 09:45:14 - INFO - llamafactory.model.loader - all params: 6,738,415,616
07/16/2024 09:45:14 - INFO - llamafactory.model.model_utils.attention - Using torch SDPA for faster training and inference.
07/16/2024 09:45:14 - INFO - llamafactory.model.loader - all params: 6,738,415,616
07/16/2024 09:45:14 - INFO - llamafactory.model.model_utils.attention - Using torch SDPA for faster training and inference.
07/16/2024 09:45:14 - INFO - llamafactory.model.model_utils.attention - Using torch SDPA for faster training and inference.
07/16/2024 09:45:14 - INFO - llamafactory.model.loader - all params: 6,738,415,616
07/16/2024 09:45:14 - INFO - llamafactory.model.loader - all params: 6,738,415,616
07/16/2024 09:45:14 - INFO - llamafactory.model.loader - all params: 6,738,415,616
07/16/2024 09:45:14 - INFO - llamafactory.model.model_utils.attention - Using torch SDPA for faster training and inference.
07/16/2024 09:45:14 - INFO - llamafactory.model.loader - all params: 6,738,415,616
07/16/2024 09:45:15 - WARNING - transformers.models.llama.modeling_llama - We detected that you are passing `past_key_values` as a tuple and this is deprecated and will be removed in v4.43. Please use an appropriate `Cache` class (https://huggingface.co/docs/transformers/v4.41.3/en/internal/generation_utils#transformers.Cache)
07/16/2024 09:45:15 - WARNING - transformers.models.llama.modeling_llama - We detected that you are passing `past_key_values` as a tuple and this is deprecated and will be removed in v4.43. Please use an appropriate `Cache` class (https://huggingface.co/docs/transformers/v4.41.3/en/internal/generation_utils#transformers.Cache)
07/16/2024 09:45:15 - WARNING - transformers.models.llama.modeling_llama - We detected that you are passing `past_key_values` as a tuple and this is deprecated and will be removed in v4.43. Please use an appropriate `Cache` class (https://huggingface.co/docs/transformers/v4.41.3/en/internal/generation_utils#transformers.Cache)
07/16/2024 09:45:16 - WARNING - transformers.models.llama.modeling_llama - We detected that you are passing `past_key_values` as a tuple and this is deprecated and will be removed in v4.43. Please use an appropriate `Cache` class (https://huggingface.co/docs/transformers/v4.41.3/en/internal/generation_utils#transformers.Cache)
07/16/2024 09:45:16 - WARNING - transformers.models.llama.modeling_llama - We detected that you are passing `past_key_values` as a tuple and this is deprecated and will be removed in v4.43. Please use an appropriate `Cache` class (https://huggingface.co/docs/transformers/v4.41.3/en/internal/generation_utils#transformers.Cache)
07/16/2024 09:45:16 - WARNING - transformers.models.llama.modeling_llama - We detected that you are passing `past_key_values` as a tuple and this is deprecated and will be removed in v4.43. Please use an appropriate `Cache` class (https://huggingface.co/docs/transformers/v4.41.3/en/internal/generation_utils#transformers.Cache)
07/16/2024 09:45:16 - WARNING - transformers.models.llama.modeling_llama - We detected that you are passing `past_key_values` as a tuple and this is deprecated and will be removed in v4.43. Please use an appropriate `Cache` class (https://huggingface.co/docs/transformers/v4.41.3/en/internal/generation_utils#transformers.Cache)
[INFO|trainer.py:127] 2024-07-16 09:45:24,567 >> Saving prediction results to saves/LLaMA2-7B-Chat/full/eval_2024-07-16-09-05-28/generated_predictions.jsonl