[Gemma 1]Finetune With XTuner
Copyright 2024 Google LLC.
Gemma - finetune with XTuner
This notebook demonstrates how to finetune Gemma with XTuner. XTuner is an efficient, flexible and full-featured toolkit for fine-tuning LLM. XTuner wraps the Hugging Face finetuning functionality and provides a simple interface for finetuning. It's very easy to finetune Gemma with XTuner.
Setup
Select the Colab runtime
To complete this tutorial, you'll need to have a Colab runtime with sufficient resources to run the Gemma model. In this case, you can use a T4 GPU:
- In the upper-right of the Colab window, select ▾ (Additional connection options).
- Select Change runtime type.
- Under Hardware accelerator, select T4 GPU.
Gemma setup on Hugging Face
XTuner uses Hugging Face under the hood. So you will need to:
- Get access to Gemma on huggingface.co by accepting the Gemma license on the Hugging Face page of the specific model, i.e., Gemma 2B.
- Generate a Hugging Face access token and configure it as a Colab secret 'HF_TOKEN'.
Install XTuner
Collecting xtuner
Downloading xtuner-0.1.19-py3-none-any.whl (1.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 6.4 MB/s eta 0:00:00
Collecting bitsandbytes>=0.40.0.post4 (from xtuner)
Downloading bitsandbytes-0.43.1-py3-none-manylinux_2_24_x86_64.whl (119.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 119.8/119.8 MB 12.4 MB/s eta 0:00:00
Collecting datasets>=2.16.0 (from xtuner)
Downloading datasets-2.19.1-py3-none-any.whl (542 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 542.0/542.0 kB 40.6 MB/s eta 0:00:00
Collecting einops (from xtuner)
Downloading einops-0.8.0-py3-none-any.whl (43 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.2/43.2 kB 6.1 MB/s eta 0:00:00
Collecting lagent>=0.1.2 (from xtuner)
Downloading lagent-0.2.2-py3-none-any.whl (69 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 69.7/69.7 kB 9.2 MB/s eta 0:00:00
Collecting mmengine>=0.10.3 (from xtuner)
Downloading mmengine-0.10.4-py3-none-any.whl (451 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 451.7/451.7 kB 43.3 MB/s eta 0:00:00
Requirement already satisfied: openpyxl in /usr/local/lib/python3.10/dist-packages (from xtuner) (3.1.3)
Collecting peft>=0.4.0 (from xtuner)
Downloading peft-0.11.1-py3-none-any.whl (251 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 251.6/251.6 kB 33.9 MB/s eta 0:00:00
Requirement already satisfied: scikit-image in /usr/local/lib/python3.10/dist-packages (from xtuner) (0.19.3)
Requirement already satisfied: scipy in /usr/local/lib/python3.10/dist-packages (from xtuner) (1.11.4)
Requirement already satisfied: SentencePiece in /usr/local/lib/python3.10/dist-packages (from xtuner) (0.1.99)
Collecting tiktoken (from xtuner)
Downloading tiktoken-0.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 58.1 MB/s eta 0:00:00
Requirement already satisfied: torch in /usr/local/lib/python3.10/dist-packages (from xtuner) (2.3.0+cu121)
Requirement already satisfied: torchvision in /usr/local/lib/python3.10/dist-packages (from xtuner) (0.18.0+cu121)
Requirement already satisfied: transformers!=4.38.0,!=4.38.1,!=4.38.2,>=4.36.0 in /usr/local/lib/python3.10/dist-packages (from xtuner) (4.41.1)
Collecting transformers-stream-generator (from xtuner)
Downloading transformers-stream-generator-0.0.5.tar.gz (13 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from bitsandbytes>=0.40.0.post4->xtuner) (1.25.2)
Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from datasets>=2.16.0->xtuner) (3.14.0)
Requirement already satisfied: pyarrow>=12.0.0 in /usr/local/lib/python3.10/dist-packages (from datasets>=2.16.0->xtuner) (14.0.2)
Requirement already satisfied: pyarrow-hotfix in /usr/local/lib/python3.10/dist-packages (from datasets>=2.16.0->xtuner) (0.6)
Collecting dill<0.3.9,>=0.3.0 (from datasets>=2.16.0->xtuner)
Downloading dill-0.3.8-py3-none-any.whl (116 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 116.3/116.3 kB 13.3 MB/s eta 0:00:00
Requirement already satisfied: pandas in /usr/local/lib/python3.10/dist-packages (from datasets>=2.16.0->xtuner) (2.0.3)
Requirement already satisfied: requests>=2.19.0 in /usr/local/lib/python3.10/dist-packages (from datasets>=2.16.0->xtuner) (2.31.0)
Requirement already satisfied: tqdm>=4.62.1 in /usr/local/lib/python3.10/dist-packages (from datasets>=2.16.0->xtuner) (4.66.4)
Collecting xxhash (from datasets>=2.16.0->xtuner)
Downloading xxhash-3.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (194 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 194.1/194.1 kB 14.9 MB/s eta 0:00:00
Collecting multiprocess (from datasets>=2.16.0->xtuner)
Downloading multiprocess-0.70.16-py310-none-any.whl (134 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 134.8/134.8 kB 13.7 MB/s eta 0:00:00
Requirement already satisfied: fsspec[http]<=2024.3.1,>=2023.1.0 in /usr/local/lib/python3.10/dist-packages (from datasets>=2.16.0->xtuner) (2023.6.0)
Requirement already satisfied: aiohttp in /usr/local/lib/python3.10/dist-packages (from datasets>=2.16.0->xtuner) (3.9.5)
Requirement already satisfied: huggingface-hub>=0.21.2 in /usr/local/lib/python3.10/dist-packages (from datasets>=2.16.0->xtuner) (0.23.2)
Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from datasets>=2.16.0->xtuner) (24.0)
Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.10/dist-packages (from datasets>=2.16.0->xtuner) (6.0.1)
Collecting arxiv (from lagent>=0.1.2->xtuner)
Downloading arxiv-2.1.0-py3-none-any.whl (11 kB)
Requirement already satisfied: distro in /usr/lib/python3/dist-packages (from lagent>=0.1.2->xtuner) (1.7.0)
Collecting func-timeout (from lagent>=0.1.2->xtuner)
Downloading func_timeout-4.3.5.tar.gz (44 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 44.3/44.3 kB 3.3 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting griffe (from lagent>=0.1.2->xtuner)
Downloading griffe-0.45.2-py3-none-any.whl (120 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 120.3/120.3 kB 13.3 MB/s eta 0:00:00
Collecting json5 (from lagent>=0.1.2->xtuner)
Downloading json5-0.9.25-py3-none-any.whl (30 kB)
Requirement already satisfied: jsonschema in /usr/local/lib/python3.10/dist-packages (from lagent>=0.1.2->xtuner) (4.19.2)
Collecting jupyter (from lagent>=0.1.2->xtuner)
Downloading jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
Requirement already satisfied: jupyter-client in /usr/local/lib/python3.10/dist-packages (from lagent>=0.1.2->xtuner) (6.1.12)
Collecting phx-class-registry (from lagent>=0.1.2->xtuner)
Downloading phx_class_registry-4.1.0-py3-none-any.whl (13 kB)
Collecting streamlit (from lagent>=0.1.2->xtuner)
Downloading streamlit-1.35.0-py2.py3-none-any.whl (8.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.6/8.6 MB 70.6 MB/s eta 0:00:00
Requirement already satisfied: typing-extensions in /usr/local/lib/python3.10/dist-packages (from lagent>=0.1.2->xtuner) (4.12.0)
Collecting addict (from mmengine>=0.10.3->xtuner)
Downloading addict-2.4.0-py3-none-any.whl (3.8 kB)
Requirement already satisfied: matplotlib in /usr/local/lib/python3.10/dist-packages (from mmengine>=0.10.3->xtuner) (3.7.1)
Requirement already satisfied: rich in /usr/local/lib/python3.10/dist-packages (from mmengine>=0.10.3->xtuner) (13.7.1)
Requirement already satisfied: termcolor in /usr/local/lib/python3.10/dist-packages (from mmengine>=0.10.3->xtuner) (2.4.0)
Collecting yapf (from mmengine>=0.10.3->xtuner)
Downloading yapf-0.40.2-py3-none-any.whl (254 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 254.7/254.7 kB 22.1 MB/s eta 0:00:00
Requirement already satisfied: opencv-python>=3 in /usr/local/lib/python3.10/dist-packages (from mmengine>=0.10.3->xtuner) (4.8.0.76)
Requirement already satisfied: psutil in /usr/local/lib/python3.10/dist-packages (from peft>=0.4.0->xtuner) (5.9.5)
Collecting accelerate>=0.21.0 (from peft>=0.4.0->xtuner)
Downloading accelerate-0.30.1-py3-none-any.whl (302 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 302.6/302.6 kB 27.2 MB/s eta 0:00:00
Requirement already satisfied: safetensors in /usr/local/lib/python3.10/dist-packages (from peft>=0.4.0->xtuner) (0.4.3)
Requirement already satisfied: sympy in /usr/local/lib/python3.10/dist-packages (from torch->xtuner) (1.12.1)
Requirement already satisfied: networkx in /usr/local/lib/python3.10/dist-packages (from torch->xtuner) (3.3)
Requirement already satisfied: jinja2 in /usr/local/lib/python3.10/dist-packages (from torch->xtuner) (3.1.4)
Collecting nvidia-cuda-nvrtc-cu12==12.1.105 (from torch->xtuner)
Using cached nvidia_cuda_nvrtc_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (23.7 MB)
Collecting nvidia-cuda-runtime-cu12==12.1.105 (from torch->xtuner)
Using cached nvidia_cuda_runtime_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (823 kB)
Collecting nvidia-cuda-cupti-cu12==12.1.105 (from torch->xtuner)
Using cached nvidia_cuda_cupti_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (14.1 MB)
Collecting nvidia-cudnn-cu12==8.9.2.26 (from torch->xtuner)
Using cached nvidia_cudnn_cu12-8.9.2.26-py3-none-manylinux1_x86_64.whl (731.7 MB)
Collecting nvidia-cublas-cu12==12.1.3.1 (from torch->xtuner)
Using cached nvidia_cublas_cu12-12.1.3.1-py3-none-manylinux1_x86_64.whl (410.6 MB)
Collecting nvidia-cufft-cu12==11.0.2.54 (from torch->xtuner)
Using cached nvidia_cufft_cu12-11.0.2.54-py3-none-manylinux1_x86_64.whl (121.6 MB)
Collecting nvidia-curand-cu12==10.3.2.106 (from torch->xtuner)
Using cached nvidia_curand_cu12-10.3.2.106-py3-none-manylinux1_x86_64.whl (56.5 MB)
Collecting nvidia-cusolver-cu12==11.4.5.107 (from torch->xtuner)
Using cached nvidia_cusolver_cu12-11.4.5.107-py3-none-manylinux1_x86_64.whl (124.2 MB)
Collecting nvidia-cusparse-cu12==12.1.0.106 (from torch->xtuner)
Using cached nvidia_cusparse_cu12-12.1.0.106-py3-none-manylinux1_x86_64.whl (196.0 MB)
Collecting nvidia-nccl-cu12==2.20.5 (from torch->xtuner)
Using cached nvidia_nccl_cu12-2.20.5-py3-none-manylinux2014_x86_64.whl (176.2 MB)
Collecting nvidia-nvtx-cu12==12.1.105 (from torch->xtuner)
Using cached nvidia_nvtx_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (99 kB)
Requirement already satisfied: triton==2.3.0 in /usr/local/lib/python3.10/dist-packages (from torch->xtuner) (2.3.0)
Collecting nvidia-nvjitlink-cu12 (from nvidia-cusolver-cu12==11.4.5.107->torch->xtuner)
Downloading nvidia_nvjitlink_cu12-12.5.40-py3-none-manylinux2014_x86_64.whl (21.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 21.3/21.3 MB 50.9 MB/s eta 0:00:00
Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.10/dist-packages (from transformers!=4.38.0,!=4.38.1,!=4.38.2,>=4.36.0->xtuner) (2024.5.15)
Requirement already satisfied: tokenizers<0.20,>=0.19 in /usr/local/lib/python3.10/dist-packages (from transformers!=4.38.0,!=4.38.1,!=4.38.2,>=4.36.0->xtuner) (0.19.1)
Requirement already satisfied: et-xmlfile in /usr/local/lib/python3.10/dist-packages (from openpyxl->xtuner) (1.1.0)
Requirement already satisfied: pillow!=7.1.0,!=7.1.1,!=8.3.0,>=6.1.0 in /usr/local/lib/python3.10/dist-packages (from scikit-image->xtuner) (9.4.0)
Requirement already satisfied: imageio>=2.4.1 in /usr/local/lib/python3.10/dist-packages (from scikit-image->xtuner) (2.31.6)
Requirement already satisfied: tifffile>=2019.7.26 in /usr/local/lib/python3.10/dist-packages (from scikit-image->xtuner) (2024.5.22)
Requirement already satisfied: PyWavelets>=1.1.1 in /usr/local/lib/python3.10/dist-packages (from scikit-image->xtuner) (1.6.0)
Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets>=2.16.0->xtuner) (1.3.1)
Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets>=2.16.0->xtuner) (23.2.0)
Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets>=2.16.0->xtuner) (1.4.1)
Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets>=2.16.0->xtuner) (6.0.5)
Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets>=2.16.0->xtuner) (1.9.4)
Requirement already satisfied: async-timeout<5.0,>=4.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets>=2.16.0->xtuner) (4.0.3)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests>=2.19.0->datasets>=2.16.0->xtuner) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests>=2.19.0->datasets>=2.16.0->xtuner) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests>=2.19.0->datasets>=2.16.0->xtuner) (2.0.7)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests>=2.19.0->datasets>=2.16.0->xtuner) (2024.2.2)
Collecting feedparser==6.0.10 (from arxiv->lagent>=0.1.2->xtuner)
Downloading feedparser-6.0.10-py3-none-any.whl (81 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 81.1/81.1 kB 13.6 MB/s eta 0:00:00
Collecting sgmllib3k (from feedparser==6.0.10->arxiv->lagent>=0.1.2->xtuner)
Downloading sgmllib3k-1.0.0.tar.gz (5.8 kB)
Preparing metadata (setup.py) ... done
Collecting colorama>=0.4 (from griffe->lagent>=0.1.2->xtuner)
Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2->torch->xtuner) (2.1.5)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /usr/local/lib/python3.10/dist-packages (from jsonschema->lagent>=0.1.2->xtuner) (2023.12.1)
Requirement already satisfied: referencing>=0.28.4 in /usr/local/lib/python3.10/dist-packages (from jsonschema->lagent>=0.1.2->xtuner) (0.35.1)
Requirement already satisfied: rpds-py>=0.7.1 in /usr/local/lib/python3.10/dist-packages (from jsonschema->lagent>=0.1.2->xtuner) (0.18.1)
Requirement already satisfied: notebook in /usr/local/lib/python3.10/dist-packages (from jupyter->lagent>=0.1.2->xtuner) (6.5.5)
Collecting qtconsole (from jupyter->lagent>=0.1.2->xtuner)
Downloading qtconsole-5.5.2-py3-none-any.whl (123 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 123.4/123.4 kB 18.5 MB/s eta 0:00:00
Requirement already satisfied: jupyter-console in /usr/local/lib/python3.10/dist-packages (from jupyter->lagent>=0.1.2->xtuner) (6.1.0)
Requirement already satisfied: nbconvert in /usr/local/lib/python3.10/dist-packages (from jupyter->lagent>=0.1.2->xtuner) (6.5.4)
Requirement already satisfied: ipykernel in /usr/local/lib/python3.10/dist-packages (from jupyter->lagent>=0.1.2->xtuner) (5.5.6)
Requirement already satisfied: ipywidgets in /usr/local/lib/python3.10/dist-packages (from jupyter->lagent>=0.1.2->xtuner) (7.7.1)
Requirement already satisfied: traitlets in /usr/local/lib/python3.10/dist-packages (from jupyter-client->lagent>=0.1.2->xtuner) (5.7.1)
Requirement already satisfied: jupyter-core>=4.6.0 in /usr/local/lib/python3.10/dist-packages (from jupyter-client->lagent>=0.1.2->xtuner) (5.7.2)
Requirement already satisfied: pyzmq>=13 in /usr/local/lib/python3.10/dist-packages (from jupyter-client->lagent>=0.1.2->xtuner) (24.0.1)
Requirement already satisfied: python-dateutil>=2.1 in /usr/local/lib/python3.10/dist-packages (from jupyter-client->lagent>=0.1.2->xtuner) (2.8.2)
Requirement already satisfied: tornado>=4.1 in /usr/local/lib/python3.10/dist-packages (from jupyter-client->lagent>=0.1.2->xtuner) (6.3.3)
Requirement already satisfied: contourpy>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib->mmengine>=0.10.3->xtuner) (1.2.1)
Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.10/dist-packages (from matplotlib->mmengine>=0.10.3->xtuner) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.10/dist-packages (from matplotlib->mmengine>=0.10.3->xtuner) (4.52.4)
Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib->mmengine>=0.10.3->xtuner) (1.4.5)
Requirement already satisfied: pyparsing>=2.3.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib->mmengine>=0.10.3->xtuner) (3.1.2)
Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.10/dist-packages (from pandas->datasets>=2.16.0->xtuner) (2023.4)
Requirement already satisfied: tzdata>=2022.1 in /usr/local/lib/python3.10/dist-packages (from pandas->datasets>=2.16.0->xtuner) (2024.1)
Requirement already satisfied: markdown-it-py>=2.2.0 in /usr/local/lib/python3.10/dist-packages (from rich->mmengine>=0.10.3->xtuner) (3.0.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /usr/local/lib/python3.10/dist-packages (from rich->mmengine>=0.10.3->xtuner) (2.16.1)
Requirement already satisfied: altair<6,>=4.0 in /usr/local/lib/python3.10/dist-packages (from streamlit->lagent>=0.1.2->xtuner) (4.2.2)
Requirement already satisfied: blinker<2,>=1.0.0 in /usr/lib/python3/dist-packages (from streamlit->lagent>=0.1.2->xtuner) (1.4)
Requirement already satisfied: cachetools<6,>=4.0 in /usr/local/lib/python3.10/dist-packages (from streamlit->lagent>=0.1.2->xtuner) (5.3.3)
Requirement already satisfied: click<9,>=7.0 in /usr/local/lib/python3.10/dist-packages (from streamlit->lagent>=0.1.2->xtuner) (8.1.7)
Requirement already satisfied: protobuf<5,>=3.20 in /usr/local/lib/python3.10/dist-packages (from streamlit->lagent>=0.1.2->xtuner) (3.20.3)
Requirement already satisfied: tenacity<9,>=8.1.0 in /usr/local/lib/python3.10/dist-packages (from streamlit->lagent>=0.1.2->xtuner) (8.3.0)
Requirement already satisfied: toml<2,>=0.10.1 in /usr/local/lib/python3.10/dist-packages (from streamlit->lagent>=0.1.2->xtuner) (0.10.2)
Collecting gitpython!=3.1.19,<4,>=3.0.7 (from streamlit->lagent>=0.1.2->xtuner)
Downloading GitPython-3.1.43-py3-none-any.whl (207 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 207.3/207.3 kB 30.2 MB/s eta 0:00:00
Collecting pydeck<1,>=0.8.0b4 (from streamlit->lagent>=0.1.2->xtuner)
Downloading pydeck-0.9.1-py2.py3-none-any.whl (6.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.9/6.9 MB 87.1 MB/s eta 0:00:00
Collecting watchdog>=2.1.5 (from streamlit->lagent>=0.1.2->xtuner)
Downloading watchdog-4.0.1-py3-none-manylinux2014_x86_64.whl (83 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 83.0/83.0 kB 14.4 MB/s eta 0:00:00
Requirement already satisfied: mpmath<1.4.0,>=1.1.0 in /usr/local/lib/python3.10/dist-packages (from sympy->torch->xtuner) (1.3.0)
Requirement already satisfied: importlib-metadata>=6.6.0 in /usr/local/lib/python3.10/dist-packages (from yapf->mmengine>=0.10.3->xtuner) (7.1.0)
Requirement already satisfied: platformdirs>=3.5.1 in /usr/local/lib/python3.10/dist-packages (from yapf->mmengine>=0.10.3->xtuner) (4.2.2)
Requirement already satisfied: tomli>=2.0.1 in /usr/local/lib/python3.10/dist-packages (from yapf->mmengine>=0.10.3->xtuner) (2.0.1)
Requirement already satisfied: entrypoints in /usr/local/lib/python3.10/dist-packages (from altair<6,>=4.0->streamlit->lagent>=0.1.2->xtuner) (0.4)
Requirement already satisfied: toolz in /usr/local/lib/python3.10/dist-packages (from altair<6,>=4.0->streamlit->lagent>=0.1.2->xtuner) (0.12.1)
Collecting gitdb<5,>=4.0.1 (from gitpython!=3.1.19,<4,>=3.0.7->streamlit->lagent>=0.1.2->xtuner)
Downloading gitdb-4.0.11-py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.7/62.7 kB 11.2 MB/s eta 0:00:00
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.10/dist-packages (from importlib-metadata>=6.6.0->yapf->mmengine>=0.10.3->xtuner) (3.19.0)
Requirement already satisfied: mdurl~=0.1 in /usr/local/lib/python3.10/dist-packages (from markdown-it-py>=2.2.0->rich->mmengine>=0.10.3->xtuner) (0.1.2)
Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.10/dist-packages (from python-dateutil>=2.1->jupyter-client->lagent>=0.1.2->xtuner) (1.16.0)
Requirement already satisfied: ipython-genutils in /usr/local/lib/python3.10/dist-packages (from ipykernel->jupyter->lagent>=0.1.2->xtuner) (0.2.0)
Requirement already satisfied: ipython>=5.0.0 in /usr/local/lib/python3.10/dist-packages (from ipykernel->jupyter->lagent>=0.1.2->xtuner) (7.34.0)
Requirement already satisfied: widgetsnbextension~=3.6.0 in /usr/local/lib/python3.10/dist-packages (from ipywidgets->jupyter->lagent>=0.1.2->xtuner) (3.6.6)
Requirement already satisfied: jupyterlab-widgets>=1.0.0 in /usr/local/lib/python3.10/dist-packages (from ipywidgets->jupyter->lagent>=0.1.2->xtuner) (3.0.11)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /usr/local/lib/python3.10/dist-packages (from jupyter-console->jupyter->lagent>=0.1.2->xtuner) (3.0.45)
Requirement already satisfied: lxml in /usr/local/lib/python3.10/dist-packages (from nbconvert->jupyter->lagent>=0.1.2->xtuner) (4.9.4)
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.10/dist-packages (from nbconvert->jupyter->lagent>=0.1.2->xtuner) (4.12.3)
Requirement already satisfied: bleach in /usr/local/lib/python3.10/dist-packages (from nbconvert->jupyter->lagent>=0.1.2->xtuner) (6.1.0)
Requirement already satisfied: defusedxml in /usr/local/lib/python3.10/dist-packages (from nbconvert->jupyter->lagent>=0.1.2->xtuner) (0.7.1)
Requirement already satisfied: jupyterlab-pygments in /usr/local/lib/python3.10/dist-packages (from nbconvert->jupyter->lagent>=0.1.2->xtuner) (0.3.0)
Requirement already satisfied: mistune<2,>=0.8.1 in /usr/local/lib/python3.10/dist-packages (from nbconvert->jupyter->lagent>=0.1.2->xtuner) (0.8.4)
Requirement already satisfied: nbclient>=0.5.0 in /usr/local/lib/python3.10/dist-packages (from nbconvert->jupyter->lagent>=0.1.2->xtuner) (0.10.0)
Requirement already satisfied: nbformat>=5.1 in /usr/local/lib/python3.10/dist-packages (from nbconvert->jupyter->lagent>=0.1.2->xtuner) (5.10.4)
Requirement already satisfied: pandocfilters>=1.4.1 in /usr/local/lib/python3.10/dist-packages (from nbconvert->jupyter->lagent>=0.1.2->xtuner) (1.5.1)
Requirement already satisfied: tinycss2 in /usr/local/lib/python3.10/dist-packages (from nbconvert->jupyter->lagent>=0.1.2->xtuner) (1.3.0)
Requirement already satisfied: argon2-cffi in /usr/local/lib/python3.10/dist-packages (from notebook->jupyter->lagent>=0.1.2->xtuner) (23.1.0)
Requirement already satisfied: nest-asyncio>=1.5 in /usr/local/lib/python3.10/dist-packages (from notebook->jupyter->lagent>=0.1.2->xtuner) (1.6.0)
Requirement already satisfied: Send2Trash>=1.8.0 in /usr/local/lib/python3.10/dist-packages (from notebook->jupyter->lagent>=0.1.2->xtuner) (1.8.3)
Requirement already satisfied: terminado>=0.8.3 in /usr/local/lib/python3.10/dist-packages (from notebook->jupyter->lagent>=0.1.2->xtuner) (0.18.1)
Requirement already satisfied: prometheus-client in /usr/local/lib/python3.10/dist-packages (from notebook->jupyter->lagent>=0.1.2->xtuner) (0.20.0)
Requirement already satisfied: nbclassic>=0.4.7 in /usr/local/lib/python3.10/dist-packages (from notebook->jupyter->lagent>=0.1.2->xtuner) (1.1.0)
Collecting qtpy>=2.4.0 (from qtconsole->jupyter->lagent>=0.1.2->xtuner)
Downloading QtPy-2.4.1-py3-none-any.whl (93 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 93.5/93.5 kB 16.7 MB/s eta 0:00:00
Collecting smmap<6,>=3.0.1 (from gitdb<5,>=4.0.1->gitpython!=3.1.19,<4,>=3.0.7->streamlit->lagent>=0.1.2->xtuner)
Downloading smmap-5.0.1-py3-none-any.whl (24 kB)
Requirement already satisfied: setuptools>=18.5 in /usr/local/lib/python3.10/dist-packages (from ipython>=5.0.0->ipykernel->jupyter->lagent>=0.1.2->xtuner) (67.7.2)
Collecting jedi>=0.16 (from ipython>=5.0.0->ipykernel->jupyter->lagent>=0.1.2->xtuner)
Downloading jedi-0.19.1-py2.py3-none-any.whl (1.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 88.3 MB/s eta 0:00:00
Requirement already satisfied: decorator in /usr/local/lib/python3.10/dist-packages (from ipython>=5.0.0->ipykernel->jupyter->lagent>=0.1.2->xtuner) (4.4.2)
Requirement already satisfied: pickleshare in /usr/local/lib/python3.10/dist-packages (from ipython>=5.0.0->ipykernel->jupyter->lagent>=0.1.2->xtuner) (0.7.5)
Requirement already satisfied: backcall in /usr/local/lib/python3.10/dist-packages (from ipython>=5.0.0->ipykernel->jupyter->lagent>=0.1.2->xtuner) (0.2.0)
Requirement already satisfied: matplotlib-inline in /usr/local/lib/python3.10/dist-packages (from ipython>=5.0.0->ipykernel->jupyter->lagent>=0.1.2->xtuner) (0.1.7)
Requirement already satisfied: pexpect>4.3 in /usr/local/lib/python3.10/dist-packages (from ipython>=5.0.0->ipykernel->jupyter->lagent>=0.1.2->xtuner) (4.9.0)
Requirement already satisfied: notebook-shim>=0.2.3 in /usr/local/lib/python3.10/dist-packages (from nbclassic>=0.4.7->notebook->jupyter->lagent>=0.1.2->xtuner) (0.2.4)
Requirement already satisfied: fastjsonschema>=2.15 in /usr/local/lib/python3.10/dist-packages (from nbformat>=5.1->nbconvert->jupyter->lagent>=0.1.2->xtuner) (2.19.1)
Requirement already satisfied: wcwidth in /usr/local/lib/python3.10/dist-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->jupyter-console->jupyter->lagent>=0.1.2->xtuner) (0.2.13)
Requirement already satisfied: ptyprocess in /usr/local/lib/python3.10/dist-packages (from terminado>=0.8.3->notebook->jupyter->lagent>=0.1.2->xtuner) (0.7.0)
Requirement already satisfied: argon2-cffi-bindings in /usr/local/lib/python3.10/dist-packages (from argon2-cffi->notebook->jupyter->lagent>=0.1.2->xtuner) (21.2.0)
Requirement already satisfied: soupsieve>1.2 in /usr/local/lib/python3.10/dist-packages (from beautifulsoup4->nbconvert->jupyter->lagent>=0.1.2->xtuner) (2.5)
Requirement already satisfied: webencodings in /usr/local/lib/python3.10/dist-packages (from bleach->nbconvert->jupyter->lagent>=0.1.2->xtuner) (0.5.1)
Requirement already satisfied: parso<0.9.0,>=0.8.3 in /usr/local/lib/python3.10/dist-packages (from jedi>=0.16->ipython>=5.0.0->ipykernel->jupyter->lagent>=0.1.2->xtuner) (0.8.4)
Requirement already satisfied: jupyter-server<3,>=1.8 in /usr/local/lib/python3.10/dist-packages (from notebook-shim>=0.2.3->nbclassic>=0.4.7->notebook->jupyter->lagent>=0.1.2->xtuner) (1.24.0)
Requirement already satisfied: cffi>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from argon2-cffi-bindings->argon2-cffi->notebook->jupyter->lagent>=0.1.2->xtuner) (1.16.0)
Requirement already satisfied: pycparser in /usr/local/lib/python3.10/dist-packages (from cffi>=1.0.1->argon2-cffi-bindings->argon2-cffi->notebook->jupyter->lagent>=0.1.2->xtuner) (2.22)
Requirement already satisfied: anyio<4,>=3.1.0 in /usr/local/lib/python3.10/dist-packages (from jupyter-server<3,>=1.8->notebook-shim>=0.2.3->nbclassic>=0.4.7->notebook->jupyter->lagent>=0.1.2->xtuner) (3.7.1)
Requirement already satisfied: websocket-client in /usr/local/lib/python3.10/dist-packages (from jupyter-server<3,>=1.8->notebook-shim>=0.2.3->nbclassic>=0.4.7->notebook->jupyter->lagent>=0.1.2->xtuner) (1.8.0)
Requirement already satisfied: sniffio>=1.1 in /usr/local/lib/python3.10/dist-packages (from anyio<4,>=3.1.0->jupyter-server<3,>=1.8->notebook-shim>=0.2.3->nbclassic>=0.4.7->notebook->jupyter->lagent>=0.1.2->xtuner) (1.3.1)
Requirement already satisfied: exceptiongroup in /usr/local/lib/python3.10/dist-packages (from anyio<4,>=3.1.0->jupyter-server<3,>=1.8->notebook-shim>=0.2.3->nbclassic>=0.4.7->notebook->jupyter->lagent>=0.1.2->xtuner) (1.2.1)
Building wheels for collected packages: transformers-stream-generator, func-timeout, sgmllib3k
Building wheel for transformers-stream-generator (setup.py) ... done
Created wheel for transformers-stream-generator: filename=transformers_stream_generator-0.0.5-py3-none-any.whl size=12425 sha256=b3eed23d845cad4cb2cdb68fb5c8f91cdbda35dfcf7f7361d798c7ab9de60f31
Stored in directory: /root/.cache/pip/wheels/95/4a/90/140f7b67d125906f6a165f38aad212ecb4a695ad0d87582437
Building wheel for func-timeout (setup.py) ... done
Created wheel for func-timeout: filename=func_timeout-4.3.5-py3-none-any.whl size=15080 sha256=2f04978bf6d08bc7edf8379e944da4b13a901853a56162384b01921491df9059
Stored in directory: /root/.cache/pip/wheels/3f/83/19/b5552bb9630e353f7c5b15be44bf10900afe1abbbfcf536afd
Building wheel for sgmllib3k (setup.py) ... done
Created wheel for sgmllib3k: filename=sgmllib3k-1.0.0-py3-none-any.whl size=6049 sha256=1cefce9c5033d07be8252f3085c34b6b2502f1688143537e2d78bdb76f539881
Stored in directory: /root/.cache/pip/wheels/f0/69/93/a47e9d621be168e9e33c7ce60524393c0b92ae83cf6c6e89c5
Successfully built transformers-stream-generator func-timeout sgmllib3k
Installing collected packages: sgmllib3k, func-timeout, addict, xxhash, watchdog, smmap, qtpy, phx-class-registry, nvidia-nvtx-cu12, nvidia-nvjitlink-cu12, nvidia-nccl-cu12, nvidia-curand-cu12, nvidia-cufft-cu12, nvidia-cuda-runtime-cu12, nvidia-cuda-nvrtc-cu12, nvidia-cuda-cupti-cu12, nvidia-cublas-cu12, json5, jedi, feedparser, einops, dill, colorama, yapf, tiktoken, pydeck, nvidia-cusparse-cu12, nvidia-cudnn-cu12, multiprocess, griffe, gitdb, arxiv, nvidia-cusolver-cu12, mmengine, gitpython, qtconsole, datasets, transformers-stream-generator, streamlit, bitsandbytes, accelerate, peft, jupyter, lagent, xtuner
Successfully installed accelerate-0.30.1 addict-2.4.0 arxiv-2.1.0 bitsandbytes-0.43.1 colorama-0.4.6 datasets-2.19.1 dill-0.3.8 einops-0.8.0 feedparser-6.0.10 func-timeout-4.3.5 gitdb-4.0.11 gitpython-3.1.43 griffe-0.45.2 jedi-0.19.1 json5-0.9.25 jupyter-1.0.0 lagent-0.2.2 mmengine-0.10.4 multiprocess-0.70.16 nvidia-cublas-cu12-12.1.3.1 nvidia-cuda-cupti-cu12-12.1.105 nvidia-cuda-nvrtc-cu12-12.1.105 nvidia-cuda-runtime-cu12-12.1.105 nvidia-cudnn-cu12-8.9.2.26 nvidia-cufft-cu12-11.0.2.54 nvidia-curand-cu12-10.3.2.106 nvidia-cusolver-cu12-11.4.5.107 nvidia-cusparse-cu12-12.1.0.106 nvidia-nccl-cu12-2.20.5 nvidia-nvjitlink-cu12-12.5.40 nvidia-nvtx-cu12-12.1.105 peft-0.11.1 phx-class-registry-4.1.0 pydeck-0.9.1 qtconsole-5.5.2 qtpy-2.4.1 sgmllib3k-1.0.0 smmap-5.0.1 streamlit-1.35.0 tiktoken-0.7.0 transformers-stream-generator-0.0.5 watchdog-4.0.1 xtuner-0.1.19 xxhash-3.4.1 yapf-0.40.2
Finetune Gemma
XTuner has many built-in configurations for finetuning various LLMs. Check out the relevant ones for Gemma. If you are curious how they look like or you want to make adjustments, take a look at the files.
gemma_2b_full_alpaca_e3 gemma_2b_it_full_alpaca_e3 gemma_2b_it_qlora_alpaca_e3 gemma_2b_qlora_alpaca_e3 gemma_7b_full_alpaca_e3 gemma_7b_it_full_alpaca_e3 gemma_7b_it_qlora_alpaca_e3 gemma_7b_qlora_alpaca_e3
For demonstration, this notebook finetunes the instruction tuned Gemma 2B model using QLoRA and the Alpaca dataset. You can optionally enable DeepSpeed as well.
06/02 03:40:31 - mmengine - INFO - ------------------------------------------------------------ System environment: sys.platform: linux Python: 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] CUDA available: True MUSA available: False numpy_random_seed: 204097869 GPU 0: NVIDIA A100-SXM4-40GB CUDA_HOME: /usr/local/cuda NVCC: Cuda compilation tools, release 12.2, V12.2.140 GCC: x86_64-linux-gnu-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 PyTorch: 2.3.0+cu121 PyTorch compiling details: PyTorch built with: - GCC 9.3 - C++ Version: 201703 - Intel(R) oneAPI Math Kernel Library Version 2022.2-Product Build 20220804 for Intel(R) 64 architecture applications - Intel(R) MKL-DNN v3.3.6 (Git Hash 86e6af5974177e513fd3fee58425e1063e7f1361) - OpenMP 201511 (a.k.a. OpenMP 4.5) - LAPACK is enabled (usually provided by MKL) - NNPACK is enabled - CPU capability usage: AVX512 - CUDA Runtime 12.1 - NVCC architecture flags: -gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86;-gencode;arch=compute_90,code=sm_90 - CuDNN 8.9.2 - Magma 2.6.1 - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=12.1, CUDNN_VERSION=8.9.2, CXX_COMPILER=/opt/rh/devtoolset-9/root/usr/bin/c++, CXX_FLAGS= -D_GLIBCXX_USE_CXX11_ABI=0 -fabi-version=11 -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow -Wsuggest-override -Wno-psabi -Wno-error=pedantic -Wno-error=old-style-cast -Wno-missing-braces -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=2.3.0, USE_CUDA=ON, USE_CUDNN=ON, USE_CUSPARSELT=1, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_GLOO=ON, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=1, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, USE_ROCM_KERNEL_ASSERT=OFF, TorchVision: 0.18.0+cu121 OpenCV: 4.8.0 MMEngine: 0.10.4 Runtime environment: cudnn_benchmark: False mp_cfg: {'mp_start_method': 'fork', 'opencv_num_threads': 0} dist_cfg: {'backend': 'nccl'} seed: 204097869 deterministic: False Distributed launcher: none Distributed training: False GPU number: 1 ------------------------------------------------------------ 06/02 03:40:31 - mmengine - INFO - Config: SYSTEM = 'xtuner.utils.SYSTEM_TEMPLATE.alpaca' accumulative_counts = 16 alpaca_en = dict( dataset=dict(path='tatsu-lab/alpaca', type='datasets.load_dataset'), dataset_map_fn='xtuner.dataset.map_fns.alpaca_map_fn', max_length=2048, pack_to_max_length=True, remove_unused_columns=True, shuffle_before_pack=True, template_map_fn=dict( template='xtuner.utils.PROMPT_TEMPLATE.gemma', type='xtuner.dataset.map_fns.template_map_fn_factory'), tokenizer=dict( padding_side='right', pretrained_model_name_or_path='google/gemma-2b-it', trust_remote_code=True, type='transformers.AutoTokenizer.from_pretrained'), type='xtuner.dataset.process_hf_dataset', use_varlen_attn=False) alpaca_en_path = 'tatsu-lab/alpaca' batch_size = 1 betas = ( 0.9, 0.999, ) custom_hooks = [ dict( tokenizer=dict( padding_side='right', pretrained_model_name_or_path='google/gemma-2b-it', trust_remote_code=True, type='transformers.AutoTokenizer.from_pretrained'), type='xtuner.engine.hooks.DatasetInfoHook'), dict( evaluation_inputs=[ '请给我介绍五个上海的景点', 'Please tell me five scenic spots in Shanghai', ], every_n_iters=500, prompt_template='xtuner.utils.PROMPT_TEMPLATE.gemma', system='xtuner.utils.SYSTEM_TEMPLATE.alpaca', tokenizer=dict( padding_side='right', pretrained_model_name_or_path='google/gemma-2b-it', trust_remote_code=True, type='transformers.AutoTokenizer.from_pretrained'), type='xtuner.engine.hooks.EvaluateChatHook'), ] dataloader_num_workers = 0 default_hooks = dict( checkpoint=dict( by_epoch=False, interval=500, max_keep_ckpts=2, type='mmengine.hooks.CheckpointHook'), logger=dict( interval=10, log_metric_by_epoch=False, type='mmengine.hooks.LoggerHook'), param_scheduler=dict(type='mmengine.hooks.ParamSchedulerHook'), sampler_seed=dict(type='mmengine.hooks.DistSamplerSeedHook'), timer=dict(type='mmengine.hooks.IterTimerHook')) env_cfg = dict( cudnn_benchmark=False, dist_cfg=dict(backend='nccl'), mp_cfg=dict(mp_start_method='fork', opencv_num_threads=0)) evaluation_freq = 500 evaluation_inputs = [ '请给我介绍五个上海的景点', 'Please tell me five scenic spots in Shanghai', ] launcher = 'none' load_from = None log_level = 'INFO' log_processor = dict(by_epoch=False) lr = 0.0002 max_epochs = 3 max_length = 2048 max_norm = 1 model = dict( llm=dict( pretrained_model_name_or_path='google/gemma-2b-it', quantization_config=dict( bnb_4bit_compute_dtype='torch.float16', bnb_4bit_quant_type='nf4', bnb_4bit_use_double_quant=True, llm_int8_has_fp16_weight=False, llm_int8_threshold=6.0, load_in_4bit=True, load_in_8bit=False, type='transformers.BitsAndBytesConfig'), torch_dtype='torch.float16', trust_remote_code=True, type='transformers.AutoModelForCausalLM.from_pretrained'), lora=dict( bias='none', lora_alpha=16, lora_dropout=0.1, r=64, task_type='CAUSAL_LM', type='peft.LoraConfig'), type='xtuner.model.SupervisedFinetune', use_varlen_attn=False) optim_type = 'torch.optim.AdamW' optim_wrapper = dict( accumulative_counts=16, clip_grad=dict(error_if_nonfinite=False, max_norm=1), dtype='float16', loss_scale='dynamic', optimizer=dict( betas=( 0.9, 0.999, ), lr=0.0002, type='torch.optim.AdamW', weight_decay=0), type='mmengine.optim.AmpOptimWrapper') pack_to_max_length = True param_scheduler = [ dict( begin=0, by_epoch=True, convert_to_iter_based=True, end=0.09, start_factor=1e-05, type='mmengine.optim.LinearLR'), dict( begin=0.09, by_epoch=True, convert_to_iter_based=True, end=3, eta_min=0.0, type='mmengine.optim.CosineAnnealingLR'), ] pretrained_model_name_or_path = 'google/gemma-2b-it' prompt_template = 'xtuner.utils.PROMPT_TEMPLATE.gemma' randomness = dict(deterministic=False, seed=None) resume = False save_steps = 500 save_total_limit = 2 tokenizer = dict( padding_side='right', pretrained_model_name_or_path='google/gemma-2b-it', trust_remote_code=True, type='transformers.AutoTokenizer.from_pretrained') train_cfg = dict(max_epochs=3, type='xtuner.engine.runner.TrainLoop') train_dataloader = dict( batch_size=1, collate_fn=dict( type='xtuner.dataset.collate_fns.default_collate_fn', use_varlen_attn=False), dataset=dict( dataset=dict(path='tatsu-lab/alpaca', type='datasets.load_dataset'), dataset_map_fn='xtuner.dataset.map_fns.alpaca_map_fn', max_length=2048, pack_to_max_length=True, remove_unused_columns=True, shuffle_before_pack=True, template_map_fn=dict( template='xtuner.utils.PROMPT_TEMPLATE.gemma', type='xtuner.dataset.map_fns.template_map_fn_factory'), tokenizer=dict( padding_side='right', pretrained_model_name_or_path='google/gemma-2b-it', trust_remote_code=True, type='transformers.AutoTokenizer.from_pretrained'), type='xtuner.dataset.process_hf_dataset', use_varlen_attn=False), num_workers=0, sampler=dict(shuffle=True, type='mmengine.dataset.DefaultSampler')) use_varlen_attn = False visualizer = None warmup_ratio = 0.03 weight_decay = 0 work_dir = './work_dirs/gemma_2b_it_qlora_alpaca_e3' quantization_config convert to <class 'transformers.utils.quantization_config.BitsAndBytesConfig'> 06/02 03:40:31 - mmengine - WARNING - Failed to search registry with scope "mmengine" in the "builder" registry tree. As a workaround, the current "builder" registry in "xtuner" is used to build instance. This may cause unexpected failure when running the built modules. Please check whether "mmengine" is a correct scope, or whether the registry is initialized. `low_cpu_mem_usage` was None, now set to True since model is quantized. `config.hidden_act` is ignored, you should use `config.hidden_activation` instead. Gemma's activation function will be set to `gelu_pytorch_tanh`. Please, use `config.hidden_activation` if you want to override this behaviour. See https://github.com/huggingface/transformers/pull/29402 for more details. Loading checkpoint shards: 100% 2/2 [00:02<00:00, 1.49s/it] 06/02 03:40:36 - mmengine - INFO - Distributed training is not used, all SyncBatchNorm (SyncBN) layers in the model will be automatically reverted to BatchNormXd layers if they are used. 06/02 03:40:38 - mmengine - INFO - Hooks will be executed in the following order: before_run: (VERY_HIGH ) RuntimeInfoHook (BELOW_NORMAL) LoggerHook -------------------- before_train: (VERY_HIGH ) RuntimeInfoHook (NORMAL ) IterTimerHook (NORMAL ) DatasetInfoHook (LOW ) EvaluateChatHook (VERY_LOW ) CheckpointHook -------------------- before_train_epoch: (VERY_HIGH ) RuntimeInfoHook (NORMAL ) IterTimerHook (NORMAL ) DistSamplerSeedHook -------------------- before_train_iter: (VERY_HIGH ) RuntimeInfoHook (NORMAL ) IterTimerHook -------------------- after_train_iter: (VERY_HIGH ) RuntimeInfoHook (NORMAL ) IterTimerHook (BELOW_NORMAL) LoggerHook (LOW ) ParamSchedulerHook (LOW ) EvaluateChatHook (VERY_LOW ) CheckpointHook -------------------- after_train_epoch: (NORMAL ) IterTimerHook (LOW ) ParamSchedulerHook (VERY_LOW ) CheckpointHook -------------------- before_val: (VERY_HIGH ) RuntimeInfoHook (NORMAL ) DatasetInfoHook -------------------- before_val_epoch: (NORMAL ) IterTimerHook -------------------- before_val_iter: (NORMAL ) IterTimerHook -------------------- after_val_iter: (NORMAL ) IterTimerHook (BELOW_NORMAL) LoggerHook -------------------- after_val_epoch: (VERY_HIGH ) RuntimeInfoHook (NORMAL ) IterTimerHook (BELOW_NORMAL) LoggerHook (LOW ) ParamSchedulerHook (VERY_LOW ) CheckpointHook -------------------- after_val: (VERY_HIGH ) RuntimeInfoHook (LOW ) EvaluateChatHook -------------------- after_train: (VERY_HIGH ) RuntimeInfoHook (LOW ) EvaluateChatHook (VERY_LOW ) CheckpointHook -------------------- before_test: (VERY_HIGH ) RuntimeInfoHook (NORMAL ) DatasetInfoHook -------------------- before_test_epoch: (NORMAL ) IterTimerHook -------------------- before_test_iter: (NORMAL ) IterTimerHook -------------------- after_test_iter: (NORMAL ) IterTimerHook (BELOW_NORMAL) LoggerHook -------------------- after_test_epoch: (VERY_HIGH ) RuntimeInfoHook (NORMAL ) IterTimerHook (BELOW_NORMAL) LoggerHook -------------------- after_test: (VERY_HIGH ) RuntimeInfoHook -------------------- after_run: (BELOW_NORMAL) LoggerHook -------------------- Flattening the indices (num_proc=32): 100% 51979/51979 [00:00<00:00, 110082.27 examples/s] Map (num_proc=32): 100% 51979/51979 [00:01<00:00, 46861.38 examples/s] Map (num_proc=32): 100% 2181/2181 [00:00<00:00, 3215.12 examples/s] 06/02 03:40:45 - mmengine - WARNING - Dataset Dataset has no metainfo. ``dataset_meta`` in visualizer will be None. 06/02 03:40:45 - mmengine - INFO - Num train samples 2181 06/02 03:40:45 - mmengine - INFO - train example: 2024-06-02 03:40:45.502601: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2024-06-02 03:40:45.553683: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered 2024-06-02 03:40:45.553728: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered 2024-06-02 03:40:45.555768: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered 2024-06-02 03:40:45.563715: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. 2024-06-02 03:40:46.650869: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT 06/02 03:40:47 - mmengine - INFO - <bos><start_of_turn>user Analyze what are the differences between two products and provide a conclusion on which one is better. Product 1: Automatically synchronizes data across all the users. Product 2: Allows users to share files, with automatically synced versions.<end_of_turn> <start_of_turn>model Product 1 is better, as it offers comprehensive automatic synchronization of data across all users which eliminates the need for manual synchronization and ensures data consistency. On the other hand, Product 2 allows users to share files but does not have the automatic synchronization capabilities of Product 1.<end_of_turn><eos> <bos><start_of_turn>user Give a health measurement to this person Tim Blake Nelson<end_of_turn> <start_of_turn>model Sorry, the task involves personal information. Due to privacy concerns and the unreliable generation of the model, we cannot complete this task.<end_of_turn><eos> <bos><start_of_turn>user Describe the behavior of a person who is on the autism spectrum <end_of_turn> <start_of_turn>model A person on the autism spectrum may display behaviors such as communicating in unconventional ways, having difficulty forming social relationships, having intense interests and focusing on certain topics to the exclusion of others, and having issues with sensory stimuli. They may have difficulty interpreting other people's facial expressions and body language, and engaging in play. They may also have a wide range of learning abilities, including high intelligence, and may respond well to structure and routine.<end_of_turn><eos> <bos><start_of_turn>user Name three methods for authentication. <none><end_of_turn> <start_of_turn>model Three methods for authentication are: passwords, two-factor authentication, and biometrics.<end_of_turn><eos> <bos><start_of_turn>user Write a story involving a computer programmer from the future. <end_of_turn> <start_of_turn>model Madelyne was a computer programmer from the future. Her job was to create and improve upon existing computer systems designed to make life in the future easier and more efficient. She had a knack for problem solving and creativity which helped her to create some of the most innovative computer systems ever used. One day, she was tasked with the challenge of creating a program that could predict the stock market. The task seemed daunting and was even thought of as impossible by some, but Madelyne was determined to find a way to make it work. After spending months working on the program, she managed to develop a predictive algorithm that proved to be remarkably accurate. This algorithm instantly made Madelyne a tech celebrity and created a sensation in the tech industry.<end_of_turn><eos> <bos><start_of_turn>user Calculate the median of the following data set. 1, 2, 4, 5, 8, 9<end_of_turn> <start_of_turn>model 5<end_of_turn><eos> <bos><start_of_turn>user In not more than two sentences, summarize the purpose of Machine Learning. <end_of_turn> <start_of_turn>model The purpose of Machine Learning is to develop algorithms and systems that can learn from data and use that knowledge to make predictions, decisions, and recommendations.<end_of_turn><eos> <bos><start_of_turn>user Create a web page for a given topic. Topic: Outdoor Adventure<end_of_turn> <start_of_turn>model A web page for the topic of Outdoor Adventure, featuring a full-width picture at the top with engaging content below. The page should have an introduction describing the topic, listing out different adventures that can be included under the category, including detailed information on each adventure. It should also feature visitor reviews or ratings where applicable. There should be multiple tabs available, such as a FAQ page, to explore further. Additionally, there should be a booking or contact page with detailed information on how to get started and connect with an organizer or adventure professional.<end_of_turn><eos> <bos><start_of_turn>user Write an annotation for a website about animal conservation. <end_of_turn> <start_of_turn>model This website provides information on animal conservation, focusing on strategies to protect endangered species and understanding the current state of wildlife populations. It provides resources such as articles, reports, videos, and galleries to explore different topics related to conservation. It is meant to educate people about the importance of saving endangered species and inspiring action to protect them.<end_of_turn><eos> <bos><start_of_turn>user Write the most accurate summary of the passage in less than 100 words. With the introduction of machine learning and deep learning into the modern world, engineers have developed systems that are capable of extracting important information from large data sets without any human input. These systems, referred to as “intelligent agents”, are able to learn from the data, find patterns, and make informed decisions. Intelligent agents are being used in a variety of domains, such as healthcare, finance, manufacturing, and transportation.<end_of_turn> <start_of_turn>model Intelligent agents are systems that use machine learning and deep learning to analyze data and make informed decisions without the need of human interaction. These agents have found success in a variety of domains such as healthcare, finance, manufacturing, and transportation. They learn from the data, find patterns, and use this information to make decisions.<end_of_turn><eos> <bos><start_of_turn>user Calculate the sum of 1, 4, and 9. <end_of_turn> <start_of_turn>model The sum of 1, 4, and 9 is 14.<end_of_turn><eos> <bos><start_of_turn>user Translate the phrase "Life is a journey" into a foreign language of your choice. <end_of_turn> <start_of_turn>model La vida es un viaje (Spanish).<end_of_turn><eos> <bos><start_of_turn>user Convert the following code snippet into a pseudocode. while (counter < limit): print (counter) counter += 5<end_of_turn> <start_of_turn>model WHILE counter is less than limit DO PRINT counter ADD 5 to counter END WHILE<end_of_turn><eos> <bos><start_of_turn>user Generate a list of questions about a given real world topics. Apple's products<end_of_turn> <start_of_turn>model 1. What are the different products that Apple offers? 2. How have Apple's products evolved over time? 3. What distinguishes Apple's products from those of its competitors? 4. How have Apple's new products changed the tech industry? 5. What are the pros and cons of Apple's products? 6. What cutting-edge features does Apple's products offer? 7. How does Apple ensure that their products are secure? 8. How does Apple's design aesthetic influence their products? 9. What impact have Apple's products had on society? 10. What strategies does Apple use to promote its products?<end_of_turn><eos> <bos><start_of_turn>user Name a tool for connecting with customers on social media. <end_of_turn> <start_of_turn>model Hootsuite.<end_of_turn><eos> <bos><start_of_turn>user Develop a plan for preparing a turkey for Thanksgiving. <end_of_turn> <start_of_turn>model Plan for preparing a turkey for Thanksgiving: - Thaw turkey in fridge - Preheat oven to 375°F - Rub turkey with oil, salt and pepper - Place in roasting pan with vegetables - Insert meat thermometer into breast - Bake according to time and temperature recommendations - Let rest before carving and serving<end_of_turn><eos> <bos><start_of_turn>user outline the steps for teaching a robot to sort coins <end_of_turn> <start_of_turn>model The steps for teaching a robot to sort coins are as follows: 1. Design a dataset of coins with different sizes, shapes, and weights to use for training the robot. 2. Develop a feature-extraction algorithm to detect properties of each coin, such as size and shape. 3. Develop a classification algorithm to differentiate between types of coins, such as penny, nickel, dime, and quarter. 4. Train the robot using supervised machine learning and the dataset of coins. 5. Test the robot’s accuracy and refine the algorithm if necessary. 6. Program the robot with the final algorithm for sorting coins.<end_of_turn><eos> <bos><start_of_turn>user Explain a current trend in the given field. Technology<end_of_turn> <start_of_turn>model One of the big trends in technology today is artificial intelligence (AI). AI allows machines to learn and process tasks that would otherwise be too complex for a human being. It has revolutionized many industries, from healthcare to computing. AI-powered chatbots are being used to streamline customer service, while autonomous vehicles have the potential to drastically change transportation. AI is also being used to generate insights in the fields of finance, marketing, and even art. This versatile technology will continue to develop and revolutionize the way we interact with technology in the future.<end_of_turn><eos> <bos><start_of_turn>user Describe the impact of new technologies on the market. <end_of_turn> <start_of_turn>model New technologies have transformed the marketplace in many ways. They have enabled businesses to reach a larger customer base and helped them to access new markets, which has resulted in increased competition and lowered prices. They’ve also enabled greater specialization and helped businesses to target their services and products more effectively, leading to better customer service and improved innovation.<end_of_turn><eos> <bos><start_of_turn>user Create an input to the following command Please create a file<end_of_turn> <start_of_turn>model "Create a new file named "example.txt" in the root directory".<end_of_turn><eos> <bos><start_of_turn>user List a few characteristics of a volcano <end_of_turn> <start_of_turn>model The primary characteristics of a volcano include the crater, vent, or magma chamber, a conduit filled with magma, and a surrounding area consisting of rock fragments, ash, lava flows, and gas emissions. Additionally, volcanoes may have a lava dome, lava curtain, fumaroles, and hydrothermal activity. Volcanoes also vary in size, shape, and type.<end_of_turn><eos> <bos><start_of_turn>user Generate 5 interesting pieces of trivia. <end_of_turn> <start_of_turn>model 1. The world's smallest mammal is the Bumblebee Bat, which is just 1.5 inches in length. 2. The Mongolian language has more than 130 words for the color blue. 3. The Great Barrier Reef is the world’s largest coral reef system and can be seen from outer space. 4. It rains diamonds on Saturn and Jupiter. 5. The odds of tossing a coin and getting all heads are 1 in a 256.<end_of_turn><eos> <bos><start_of_turn>user Explain why conservation of 06/02 03:40:47 - mmengine - INFO - before_train in EvaluateChatHook. 06/02 03:40:51 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user 请给我介绍五个上海的景点<end_of_turn> <start_of_turn>model 好的,以下五个是上海的景点: 1. 上海故宫 2. 上海博物馆 3. 上海虹桥 4. 上海金山寺 5. 上海南山公园<eos> 06/02 03:40:54 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user Please tell me five scenic spots in Shanghai<end_of_turn> <start_of_turn>model 1. **Yu Garden** 2. **Nanputuo Temple** 3. **The Bund** 4. **Huangpu Island** 5. **Shengsi Island**<eos> 06/02 03:40:54 - mmengine - WARNING - "FileClient" will be deprecated in future. Please use io functions in https://mmengine.readthedocs.io/en/latest/api/fileio.html#file-io 06/02 03:40:54 - mmengine - WARNING - "HardDiskBackend" is the alias of "LocalBackend" and the former will be deprecated in future. 06/02 03:40:54 - mmengine - INFO - Checkpoints will be saved to /content/work_dirs/gemma_2b_it_qlora_alpaca_e3. /usr/local/lib/python3.10/dist-packages/mmengine/optim/scheduler/param_scheduler.py:198: UserWarning: Detected call of `scheduler.step()` before `optimizer.step()`. In PyTorch 1.1.0 and later, you should call them in the opposite order: `optimizer.step()` before `scheduler.step()`. Failure to do this will result in PyTorch skipping the first value of the parameter value schedule. See more details at https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate warnings.warn( 06/02 03:40:59 - mmengine - INFO - Iter(train) [ 10/6543] lr: 9.2327e-06 eta: 0:55:12 time: 0.5070 data_time: 0.0080 memory: 10910 loss: 2.9300 06/02 03:41:04 - mmengine - INFO - Iter(train) [ 20/6543] lr: 1.9489e-05 eta: 0:55:22 time: 0.5117 data_time: 0.0081 memory: 11508 loss: 2.7452 grad_norm: 0.7290 06/02 03:41:09 - mmengine - INFO - Iter(train) [ 30/6543] lr: 2.9745e-05 eta: 0:54:38 time: 0.4914 data_time: 0.0078 memory: 11508 loss: 2.8962 grad_norm: 0.7290 06/02 03:41:14 - mmengine - INFO - Iter(train) [ 40/6543] lr: 4.0002e-05 eta: 0:54:15 time: 0.4924 data_time: 0.0080 memory: 11508 loss: 2.7766 grad_norm: 0.7173 06/02 03:41:19 - mmengine - INFO - Iter(train) [ 50/6543] lr: 5.0258e-05 eta: 0:54:00 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 2.6165 grad_norm: 0.7020 06/02 03:41:24 - mmengine - INFO - Iter(train) [ 60/6543] lr: 6.0514e-05 eta: 0:53:46 time: 0.4915 data_time: 0.0078 memory: 11508 loss: 2.6166 grad_norm: 0.7020 06/02 03:41:29 - mmengine - INFO - Iter(train) [ 70/6543] lr: 7.0771e-05 eta: 0:53:36 time: 0.4923 data_time: 0.0079 memory: 11508 loss: 2.7093 grad_norm: 0.6951 06/02 03:41:34 - mmengine - INFO - Iter(train) [ 80/6543] lr: 8.1027e-05 eta: 0:53:28 time: 0.4923 data_time: 0.0079 memory: 11508 loss: 2.5303 grad_norm: 0.6960 06/02 03:41:38 - mmengine - INFO - Iter(train) [ 90/6543] lr: 9.1283e-05 eta: 0:53:19 time: 0.4916 data_time: 0.0079 memory: 11508 loss: 2.3651 grad_norm: 0.6960 06/02 03:41:43 - mmengine - INFO - Iter(train) [ 100/6543] lr: 1.0154e-04 eta: 0:53:12 time: 0.4924 data_time: 0.0077 memory: 11508 loss: 2.5326 grad_norm: 0.6779 06/02 03:41:48 - mmengine - INFO - Iter(train) [ 110/6543] lr: 1.1180e-04 eta: 0:53:05 time: 0.4919 data_time: 0.0080 memory: 11508 loss: 2.3739 grad_norm: 0.6779 06/02 03:41:53 - mmengine - INFO - Iter(train) [ 120/6543] lr: 1.2205e-04 eta: 0:52:59 time: 0.4924 data_time: 0.0079 memory: 11508 loss: 2.4133 grad_norm: 0.6568 06/02 03:41:58 - mmengine - INFO - Iter(train) [ 130/6543] lr: 1.3231e-04 eta: 0:52:53 time: 0.4932 data_time: 0.0087 memory: 11508 loss: 2.2508 grad_norm: 0.6879 06/02 03:42:03 - mmengine - INFO - Iter(train) [ 140/6543] lr: 1.4256e-04 eta: 0:52:47 time: 0.4921 data_time: 0.0080 memory: 11508 loss: 2.3256 grad_norm: 0.6879 06/02 03:42:08 - mmengine - INFO - Iter(train) [ 150/6543] lr: 1.5282e-04 eta: 0:52:41 time: 0.4923 data_time: 0.0077 memory: 11508 loss: 2.2082 grad_norm: 0.7682 06/02 03:42:13 - mmengine - INFO - Iter(train) [ 160/6543] lr: 1.6308e-04 eta: 0:52:35 time: 0.4926 data_time: 0.0078 memory: 11508 loss: 2.1557 grad_norm: 0.7858 06/02 03:42:18 - mmengine - INFO - Iter(train) [ 170/6543] lr: 1.7333e-04 eta: 0:52:29 time: 0.4917 data_time: 0.0079 memory: 11508 loss: 2.1435 grad_norm: 0.7858 06/02 03:42:23 - mmengine - INFO - Iter(train) [ 180/6543] lr: 1.8359e-04 eta: 0:52:23 time: 0.4926 data_time: 0.0078 memory: 11508 loss: 2.0410 grad_norm: 0.7496 06/02 03:42:28 - mmengine - INFO - Iter(train) [ 190/6543] lr: 1.9385e-04 eta: 0:52:18 time: 0.4921 data_time: 0.0080 memory: 11508 loss: 2.0182 grad_norm: 0.7496 06/02 03:42:33 - mmengine - INFO - Iter(train) [ 200/6543] lr: 2.0000e-04 eta: 0:52:12 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.9503 grad_norm: 0.7131 06/02 03:42:38 - mmengine - INFO - Iter(train) [ 210/6543] lr: 2.0000e-04 eta: 0:52:07 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.9286 grad_norm: 0.6786 06/02 03:42:42 - mmengine - INFO - Iter(train) [ 220/6543] lr: 1.9999e-04 eta: 0:52:01 time: 0.4916 data_time: 0.0077 memory: 11508 loss: 1.8610 grad_norm: 0.6786 06/02 03:42:47 - mmengine - INFO - Iter(train) [ 230/6543] lr: 1.9999e-04 eta: 0:51:56 time: 0.4931 data_time: 0.0078 memory: 11508 loss: 1.9621 grad_norm: 0.6424 06/02 03:42:52 - mmengine - INFO - Iter(train) [ 240/6543] lr: 1.9998e-04 eta: 0:51:51 time: 0.4926 data_time: 0.0078 memory: 11508 loss: 1.8921 grad_norm: 0.6018 06/02 03:42:57 - mmengine - INFO - Iter(train) [ 250/6543] lr: 1.9997e-04 eta: 0:51:46 time: 0.4913 data_time: 0.0077 memory: 11508 loss: 1.9898 grad_norm: 0.6018 06/02 03:43:02 - mmengine - INFO - Iter(train) [ 260/6543] lr: 1.9995e-04 eta: 0:51:41 time: 0.4932 data_time: 0.0080 memory: 11508 loss: 1.8048 grad_norm: 0.5725 06/02 03:43:07 - mmengine - INFO - Iter(train) [ 270/6543] lr: 1.9993e-04 eta: 0:51:35 time: 0.4919 data_time: 0.0080 memory: 11508 loss: 1.7975 grad_norm: 0.5725 06/02 03:43:12 - mmengine - INFO - Iter(train) [ 280/6543] lr: 1.9992e-04 eta: 0:51:30 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.6763 grad_norm: 0.5503 06/02 03:43:17 - mmengine - INFO - Iter(train) [ 290/6543] lr: 1.9989e-04 eta: 0:51:25 time: 0.4923 data_time: 0.0077 memory: 11508 loss: 1.7768 grad_norm: 0.4831 06/02 03:43:22 - mmengine - INFO - Iter(train) [ 300/6543] lr: 1.9987e-04 eta: 0:51:20 time: 0.4917 data_time: 0.0077 memory: 11508 loss: 1.7964 grad_norm: 0.4831 06/02 03:43:27 - mmengine - INFO - Iter(train) [ 310/6543] lr: 1.9984e-04 eta: 0:51:15 time: 0.4928 data_time: 0.0079 memory: 11508 loss: 1.7690 grad_norm: 0.3635 06/02 03:43:32 - mmengine - INFO - Iter(train) [ 320/6543] lr: 1.9981e-04 eta: 0:51:10 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.7936 grad_norm: 0.2894 06/02 03:43:37 - mmengine - INFO - Iter(train) [ 330/6543] lr: 1.9978e-04 eta: 0:51:04 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.7931 grad_norm: 0.2894 06/02 03:43:42 - mmengine - INFO - Iter(train) [ 340/6543] lr: 1.9975e-04 eta: 0:50:59 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.6962 grad_norm: 0.2802 06/02 03:43:46 - mmengine - INFO - Iter(train) [ 350/6543] lr: 1.9971e-04 eta: 0:50:54 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.7589 grad_norm: 0.2802 06/02 03:43:51 - mmengine - INFO - Iter(train) [ 360/6543] lr: 1.9967e-04 eta: 0:50:49 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.7272 grad_norm: 0.2715 06/02 03:43:56 - mmengine - INFO - Iter(train) [ 370/6543] lr: 1.9963e-04 eta: 0:50:44 time: 0.4922 data_time: 0.0077 memory: 11508 loss: 1.6756 grad_norm: 0.2585 06/02 03:44:01 - mmengine - INFO - Iter(train) [ 380/6543] lr: 1.9959e-04 eta: 0:50:39 time: 0.4918 data_time: 0.0078 memory: 11508 loss: 1.6761 grad_norm: 0.2585 06/02 03:44:06 - mmengine - INFO - Iter(train) [ 390/6543] lr: 1.9954e-04 eta: 0:50:34 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.7016 grad_norm: 0.2464 06/02 03:44:11 - mmengine - INFO - Iter(train) [ 400/6543] lr: 1.9950e-04 eta: 0:50:29 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.6812 grad_norm: 0.2417 06/02 03:44:16 - mmengine - INFO - Iter(train) [ 410/6543] lr: 1.9944e-04 eta: 0:50:24 time: 0.4914 data_time: 0.0077 memory: 11508 loss: 1.6650 grad_norm: 0.2417 06/02 03:44:21 - mmengine - INFO - Iter(train) [ 420/6543] lr: 1.9939e-04 eta: 0:50:18 time: 0.4924 data_time: 0.0077 memory: 11508 loss: 1.7206 grad_norm: 0.2330 06/02 03:44:26 - mmengine - INFO - Iter(train) [ 430/6543] lr: 1.9934e-04 eta: 0:50:13 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.6426 grad_norm: 0.2330 06/02 03:44:31 - mmengine - INFO - Iter(train) [ 440/6543] lr: 1.9928e-04 eta: 0:50:08 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.5951 grad_norm: 0.2184 06/02 03:44:36 - mmengine - INFO - Iter(train) [ 450/6543] lr: 1.9922e-04 eta: 0:50:03 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.5709 grad_norm: 0.2168 06/02 03:44:41 - mmengine - INFO - Iter(train) [ 460/6543] lr: 1.9915e-04 eta: 0:49:58 time: 0.4917 data_time: 0.0078 memory: 11508 loss: 1.5605 grad_norm: 0.2168 06/02 03:44:46 - mmengine - INFO - Iter(train) [ 470/6543] lr: 1.9909e-04 eta: 0:49:53 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.6093 grad_norm: 0.2131 06/02 03:44:50 - mmengine - INFO - Iter(train) [ 480/6543] lr: 1.9902e-04 eta: 0:49:48 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.6858 grad_norm: 0.2115 06/02 03:44:55 - mmengine - INFO - Iter(train) [ 490/6543] lr: 1.9895e-04 eta: 0:49:43 time: 0.4916 data_time: 0.0078 memory: 11508 loss: 1.6414 grad_norm: 0.2115 06/02 03:45:00 - mmengine - INFO - Iter(train) [ 500/6543] lr: 1.9888e-04 eta: 0:49:38 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.6135 grad_norm: 0.2006 06/02 03:45:00 - mmengine - INFO - after_train_iter in EvaluateChatHook. 06/02 03:45:02 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user 请给我介绍五个上海的景点<end_of_turn> <start_of_turn>model 1. 上海故宫 2. 上海博物馆 3. 上海博物馆 4. 上海博物馆 5. 上海博物馆<eos> 06/02 03:45:06 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user Please tell me five scenic spots in Shanghai<end_of_turn> <start_of_turn>model 1. The Bund 2. The Oriental Pearl Tower 3. The Shanghai Tower 4. The People's Square 5. The Yu Garden These spots offer stunning views of the city and are a great way to experience the beauty of Shanghai. parcs<eos> 06/02 03:45:06 - mmengine - INFO - Saving checkpoint at 500 iterations 06/02 03:45:14 - mmengine - INFO - Iter(train) [ 510/6543] lr: 1.9880e-04 eta: 0:51:15 time: 1.3525 data_time: 0.8650 memory: 11508 loss: 1.4946 grad_norm: 0.2006 06/02 03:45:19 - mmengine - INFO - Iter(train) [ 520/6543] lr: 1.9872e-04 eta: 0:51:08 time: 0.4928 data_time: 0.0079 memory: 11508 loss: 1.6221 grad_norm: 0.1925 06/02 03:45:24 - mmengine - INFO - Iter(train) [ 530/6543] lr: 1.9864e-04 eta: 0:51:01 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.5395 grad_norm: 0.1895 06/02 03:45:29 - mmengine - INFO - Iter(train) [ 540/6543] lr: 1.9856e-04 eta: 0:50:54 time: 0.4918 data_time: 0.0078 memory: 11508 loss: 1.5888 grad_norm: 0.1895 06/02 03:45:34 - mmengine - INFO - Iter(train) [ 550/6543] lr: 1.9848e-04 eta: 0:50:47 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.4811 grad_norm: 0.1873 06/02 03:45:38 - mmengine - INFO - Iter(train) [ 560/6543] lr: 1.9839e-04 eta: 0:50:40 time: 0.4927 data_time: 0.0078 memory: 11508 loss: 1.5247 grad_norm: 0.1851 06/02 03:45:43 - mmengine - INFO - Iter(train) [ 570/6543] lr: 1.9830e-04 eta: 0:50:33 time: 0.4917 data_time: 0.0078 memory: 11508 loss: 1.5286 grad_norm: 0.1851 06/02 03:45:48 - mmengine - INFO - Iter(train) [ 580/6543] lr: 1.9821e-04 eta: 0:50:27 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.5043 grad_norm: 0.1775 06/02 03:45:53 - mmengine - INFO - Iter(train) [ 590/6543] lr: 1.9811e-04 eta: 0:50:20 time: 0.4918 data_time: 0.0077 memory: 11508 loss: 1.5938 grad_norm: 0.1775 06/02 03:45:58 - mmengine - INFO - Iter(train) [ 600/6543] lr: 1.9802e-04 eta: 0:50:14 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.5329 grad_norm: 0.1813 06/02 03:46:03 - mmengine - INFO - Iter(train) [ 610/6543] lr: 1.9792e-04 eta: 0:50:07 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.6136 grad_norm: 0.1735 06/02 03:46:08 - mmengine - INFO - Iter(train) [ 620/6543] lr: 1.9782e-04 eta: 0:50:01 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.5828 grad_norm: 0.1735 06/02 03:46:13 - mmengine - INFO - Iter(train) [ 630/6543] lr: 1.9771e-04 eta: 0:49:54 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.5379 grad_norm: 0.1730 06/02 03:46:18 - mmengine - INFO - Iter(train) [ 640/6543] lr: 1.9761e-04 eta: 0:49:48 time: 0.4928 data_time: 0.0079 memory: 11508 loss: 1.5368 grad_norm: 0.1677 06/02 03:46:23 - mmengine - INFO - Iter(train) [ 650/6543] lr: 1.9750e-04 eta: 0:49:41 time: 0.4917 data_time: 0.0078 memory: 11508 loss: 1.5198 grad_norm: 0.1677 06/02 03:46:28 - mmengine - INFO - Iter(train) [ 660/6543] lr: 1.9739e-04 eta: 0:49:35 time: 0.4924 data_time: 0.0077 memory: 11508 loss: 1.5456 grad_norm: 0.1658 06/02 03:46:33 - mmengine - INFO - Iter(train) [ 670/6543] lr: 1.9727e-04 eta: 0:49:29 time: 0.4920 data_time: 0.0080 memory: 11508 loss: 1.5068 grad_norm: 0.1658 06/02 03:46:38 - mmengine - INFO - Iter(train) [ 680/6543] lr: 1.9716e-04 eta: 0:49:23 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.4651 grad_norm: 0.1621 06/02 03:46:42 - mmengine - INFO - Iter(train) [ 690/6543] lr: 1.9704e-04 eta: 0:49:17 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.5114 grad_norm: 0.1601 06/02 03:46:47 - mmengine - INFO - Iter(train) [ 700/6543] lr: 1.9692e-04 eta: 0:49:10 time: 0.4918 data_time: 0.0078 memory: 11508 loss: 1.4929 grad_norm: 0.1601 06/02 03:46:52 - mmengine - INFO - Iter(train) [ 710/6543] lr: 1.9679e-04 eta: 0:49:04 time: 0.4922 data_time: 0.0077 memory: 11508 loss: 1.4655 grad_norm: 0.1560 06/02 03:46:57 - mmengine - INFO - Iter(train) [ 720/6543] lr: 1.9667e-04 eta: 0:48:58 time: 0.4928 data_time: 0.0079 memory: 11508 loss: 1.5187 grad_norm: 0.1498 06/02 03:47:02 - mmengine - INFO - Iter(train) [ 730/6543] lr: 1.9654e-04 eta: 0:48:52 time: 0.4917 data_time: 0.0077 memory: 11508 loss: 1.5252 grad_norm: 0.1498 06/02 03:47:07 - mmengine - INFO - Iter(train) [ 740/6543] lr: 1.9641e-04 eta: 0:48:46 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.4807 grad_norm: 0.1496 06/02 03:47:12 - mmengine - INFO - Iter(train) [ 750/6543] lr: 1.9628e-04 eta: 0:48:40 time: 0.4926 data_time: 0.0078 memory: 11508 loss: 1.4889 grad_norm: 0.1496 06/02 03:47:17 - mmengine - INFO - Iter(train) [ 760/6543] lr: 1.9614e-04 eta: 0:48:34 time: 0.4926 data_time: 0.0078 memory: 11508 loss: 1.4703 grad_norm: 0.1476 06/02 03:47:22 - mmengine - INFO - Iter(train) [ 770/6543] lr: 1.9600e-04 eta: 0:48:28 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.4873 grad_norm: 0.1465 06/02 03:47:27 - mmengine - INFO - Iter(train) [ 780/6543] lr: 1.9587e-04 eta: 0:48:23 time: 0.4918 data_time: 0.0078 memory: 11508 loss: 1.5339 grad_norm: 0.1465 06/02 03:47:32 - mmengine - INFO - Iter(train) [ 790/6543] lr: 1.9572e-04 eta: 0:48:17 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.4493 grad_norm: 0.1465 06/02 03:47:37 - mmengine - INFO - Iter(train) [ 800/6543] lr: 1.9558e-04 eta: 0:48:11 time: 0.4924 data_time: 0.0077 memory: 11508 loss: 1.5304 grad_norm: 0.1473 06/02 03:47:42 - mmengine - INFO - Iter(train) [ 810/6543] lr: 1.9543e-04 eta: 0:48:05 time: 0.4917 data_time: 0.0078 memory: 11508 loss: 1.5206 grad_norm: 0.1473 06/02 03:47:46 - mmengine - INFO - Iter(train) [ 820/6543] lr: 1.9528e-04 eta: 0:47:59 time: 0.4923 data_time: 0.0078 memory: 11508 loss: 1.5063 grad_norm: 0.1591 06/02 03:47:51 - mmengine - INFO - Iter(train) [ 830/6543] lr: 1.9513e-04 eta: 0:47:53 time: 0.4918 data_time: 0.0077 memory: 11508 loss: 1.5201 grad_norm: 0.1591 06/02 03:47:56 - mmengine - INFO - Iter(train) [ 840/6543] lr: 1.9498e-04 eta: 0:47:48 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.4968 grad_norm: 0.2005 06/02 03:48:01 - mmengine - INFO - Iter(train) [ 850/6543] lr: 1.9482e-04 eta: 0:47:42 time: 0.4923 data_time: 0.0078 memory: 11508 loss: 1.4899 grad_norm: 0.2120 06/02 03:48:06 - mmengine - INFO - Iter(train) [ 860/6543] lr: 1.9466e-04 eta: 0:47:36 time: 0.4923 data_time: 0.0080 memory: 11508 loss: 1.4523 grad_norm: 0.2120 06/02 03:48:11 - mmengine - INFO - Iter(train) [ 870/6543] lr: 1.9450e-04 eta: 0:47:30 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.4808 grad_norm: 0.2130 06/02 03:48:16 - mmengine - INFO - Iter(train) [ 880/6543] lr: 1.9434e-04 eta: 0:47:25 time: 0.4928 data_time: 0.0079 memory: 11508 loss: 1.5183 grad_norm: 0.2122 06/02 03:48:21 - mmengine - INFO - Iter(train) [ 890/6543] lr: 1.9417e-04 eta: 0:47:19 time: 0.4917 data_time: 0.0079 memory: 11508 loss: 1.4241 grad_norm: 0.2122 06/02 03:48:26 - mmengine - INFO - Iter(train) [ 900/6543] lr: 1.9401e-04 eta: 0:47:14 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.4521 grad_norm: 0.2144 06/02 03:48:31 - mmengine - INFO - Iter(train) [ 910/6543] lr: 1.9384e-04 eta: 0:47:08 time: 0.4923 data_time: 0.0080 memory: 11508 loss: 1.5048 grad_norm: 0.2144 06/02 03:48:36 - mmengine - INFO - Iter(train) [ 920/6543] lr: 1.9366e-04 eta: 0:47:02 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.4406 grad_norm: 0.2124 06/02 03:48:41 - mmengine - INFO - Iter(train) [ 930/6543] lr: 1.9349e-04 eta: 0:46:57 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.4483 grad_norm: 0.2155 06/02 03:48:46 - mmengine - INFO - Iter(train) [ 940/6543] lr: 1.9331e-04 eta: 0:46:51 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.4120 grad_norm: 0.2155 06/02 03:48:50 - mmengine - INFO - Iter(train) [ 950/6543] lr: 1.9313e-04 eta: 0:46:45 time: 0.4923 data_time: 0.0078 memory: 11508 loss: 1.4787 grad_norm: 0.2132 06/02 03:48:55 - mmengine - INFO - Iter(train) [ 960/6543] lr: 1.9295e-04 eta: 0:46:40 time: 0.4930 data_time: 0.0080 memory: 11508 loss: 1.4060 grad_norm: 0.2204 06/02 03:49:00 - mmengine - INFO - Iter(train) [ 970/6543] lr: 1.9277e-04 eta: 0:46:34 time: 0.4916 data_time: 0.0077 memory: 11508 loss: 1.4994 grad_norm: 0.2204 06/02 03:49:05 - mmengine - INFO - Iter(train) [ 980/6543] lr: 1.9258e-04 eta: 0:46:29 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.5139 grad_norm: 0.2086 06/02 03:49:10 - mmengine - INFO - Iter(train) [ 990/6543] lr: 1.9240e-04 eta: 0:46:23 time: 0.4917 data_time: 0.0078 memory: 11508 loss: 1.4952 grad_norm: 0.2086 06/02 03:49:15 - mmengine - INFO - Exp name: gemma_2b_it_qlora_alpaca_e3_20240602_034031 06/02 03:49:15 - mmengine - INFO - Iter(train) [1000/6543] lr: 1.9220e-04 eta: 0:46:18 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.4506 grad_norm: 0.1758 06/02 03:49:15 - mmengine - INFO - after_train_iter in EvaluateChatHook. 06/02 03:49:59 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user 请给我介绍五个上海的景点<end_of_turn> <start_of_turn>model 1. 上海故宫 2. 上海博物馆 3. 上海博物馆 4. 上海博物馆 5. 上海博物馆 上海的景点是上海历史文化博物馆,是上海四大博物馆之一,收藏了中国古代文物。 上海故宫是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海四大博物馆之一,收藏了中国古代文物。 上海故宫是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海四大博物馆之一,收藏了中国古代文物。 上海故宫是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海四大博物馆之一,收藏了中国古代文物。 上海故宫是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海四大博物馆之一,收藏了中国古代文物。 上海博物馆是上海市博物馆,是上海市文物保护单位,收藏了中国古代文物。 上海博物馆是上海市博物馆,是上海市文物保护单位,收藏了中国古代文物。 上海博物馆是上海市博物馆,收藏了中国古代文物,是上海市重要的文化教育资源。 上海博物馆是上海市重要的文化教育资源,收藏了中国古代文物,是上海市重要的文化教育资源。 上海博物馆是上海市重要的文化教育资源,收藏了中国古代文物,是上海市重要的文化教育资源。 上海博物馆是上海市重要的文化教育资源,收藏了中国古代文物,是上海市重要的文化教育资源。 上海博物馆是上海市重要的文化教育资源,收藏了中国古代文物,是上海市重要的文化教育资源。 上海博物馆是上海市重要的文化教育资源,收藏了中国古代文物,是上海市重要的文化教育资源。 上海博物馆是上海市重要的文化教育资源,收藏了中国 06/02 03:50:01 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user Please tell me five scenic spots in Shanghai<end_of_turn> <start_of_turn>model 1. The Bund 2. The Oriental Pearl Tower 3. The Yu Garden 4. The Shanghai Museum 5. The People's Square<eos> 06/02 03:50:01 - mmengine - INFO - Saving checkpoint at 1000 iterations 06/02 03:50:08 - mmengine - INFO - Iter(train) [1010/6543] lr: 1.9201e-04 eta: 0:50:38 time: 5.3335 data_time: 4.8454 memory: 11508 loss: 1.4425 grad_norm: 0.1630 06/02 03:50:13 - mmengine - INFO - Iter(train) [1020/6543] lr: 1.9182e-04 eta: 0:50:29 time: 0.4915 data_time: 0.0078 memory: 11508 loss: 1.4466 grad_norm: 0.1630 06/02 03:50:18 - mmengine - INFO - Iter(train) [1030/6543] lr: 1.9162e-04 eta: 0:50:20 time: 0.4923 data_time: 0.0079 memory: 11508 loss: 1.5103 grad_norm: 0.1678 06/02 03:50:23 - mmengine - INFO - Iter(train) [1040/6543] lr: 1.9142e-04 eta: 0:50:12 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.3785 grad_norm: 0.1702 06/02 03:50:28 - mmengine - INFO - Iter(train) [1050/6543] lr: 1.9122e-04 eta: 0:50:04 time: 0.4919 data_time: 0.0080 memory: 11508 loss: 1.4385 grad_norm: 0.1702 06/02 03:50:33 - mmengine - INFO - Iter(train) [1060/6543] lr: 1.9101e-04 eta: 0:49:55 time: 0.4923 data_time: 0.0078 memory: 11508 loss: 1.3357 grad_norm: 0.1791 06/02 03:50:38 - mmengine - INFO - Iter(train) [1070/6543] lr: 1.9081e-04 eta: 0:49:47 time: 0.4918 data_time: 0.0078 memory: 11508 loss: 1.4881 grad_norm: 0.1791 06/02 03:50:43 - mmengine - INFO - Iter(train) [1080/6543] lr: 1.9060e-04 eta: 0:49:39 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.4928 grad_norm: 0.1809 06/02 03:50:48 - mmengine - INFO - Iter(train) [1090/6543] lr: 1.9039e-04 eta: 0:49:31 time: 0.4923 data_time: 0.0078 memory: 11508 loss: 1.4542 grad_norm: 0.1852 06/02 03:50:53 - mmengine - INFO - Iter(train) [1100/6543] lr: 1.9018e-04 eta: 0:49:23 time: 0.4918 data_time: 0.0078 memory: 11508 loss: 1.4883 grad_norm: 0.1852 06/02 03:50:58 - mmengine - INFO - Iter(train) [1110/6543] lr: 1.8996e-04 eta: 0:49:15 time: 0.4923 data_time: 0.0078 memory: 11508 loss: 1.4965 grad_norm: 0.1903 06/02 03:51:03 - mmengine - INFO - Iter(train) [1120/6543] lr: 1.8974e-04 eta: 0:49:07 time: 0.4930 data_time: 0.0080 memory: 11508 loss: 1.3753 grad_norm: 0.1856 06/02 03:51:07 - mmengine - INFO - Iter(train) [1130/6543] lr: 1.8952e-04 eta: 0:48:59 time: 0.4917 data_time: 0.0078 memory: 11508 loss: 1.4171 grad_norm: 0.1856 06/02 03:51:12 - mmengine - INFO - Iter(train) [1140/6543] lr: 1.8930e-04 eta: 0:48:51 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3898 grad_norm: 0.1914 06/02 03:51:17 - mmengine - INFO - Iter(train) [1150/6543] lr: 1.8908e-04 eta: 0:48:43 time: 0.4927 data_time: 0.0082 memory: 11508 loss: 1.4847 grad_norm: 0.1914 06/02 03:51:22 - mmengine - INFO - Iter(train) [1160/6543] lr: 1.8885e-04 eta: 0:48:36 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.4707 grad_norm: 0.1858 06/02 03:51:27 - mmengine - INFO - Iter(train) [1170/6543] lr: 1.8863e-04 eta: 0:48:28 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.4629 grad_norm: 0.1916 06/02 03:51:32 - mmengine - INFO - Iter(train) [1180/6543] lr: 1.8839e-04 eta: 0:48:20 time: 0.4918 data_time: 0.0078 memory: 11508 loss: 1.4413 grad_norm: 0.1916 06/02 03:51:37 - mmengine - INFO - Iter(train) [1190/6543] lr: 1.8816e-04 eta: 0:48:13 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.4657 grad_norm: 0.1874 06/02 03:51:42 - mmengine - INFO - Iter(train) [1200/6543] lr: 1.8793e-04 eta: 0:48:05 time: 0.4924 data_time: 0.0077 memory: 11508 loss: 1.4619 grad_norm: 0.1913 06/02 03:51:47 - mmengine - INFO - Iter(train) [1210/6543] lr: 1.8769e-04 eta: 0:47:58 time: 0.4917 data_time: 0.0078 memory: 11508 loss: 1.4351 grad_norm: 0.1913 06/02 03:51:52 - mmengine - INFO - Iter(train) [1220/6543] lr: 1.8745e-04 eta: 0:47:50 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.4783 grad_norm: 0.1813 06/02 03:51:57 - mmengine - INFO - Iter(train) [1230/6543] lr: 1.8721e-04 eta: 0:47:43 time: 0.4920 data_time: 0.0078 memory: 11508 loss: 1.4787 grad_norm: 0.1813 06/02 03:52:02 - mmengine - INFO - Iter(train) [1240/6543] lr: 1.8697e-04 eta: 0:47:35 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.4695 grad_norm: 0.1818 06/02 03:52:07 - mmengine - INFO - Iter(train) [1250/6543] lr: 1.8672e-04 eta: 0:47:28 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.4462 grad_norm: 0.1772 06/02 03:52:11 - mmengine - INFO - Iter(train) [1260/6543] lr: 1.8647e-04 eta: 0:47:21 time: 0.4921 data_time: 0.0079 memory: 11508 loss: 1.5021 grad_norm: 0.1772 06/02 03:52:16 - mmengine - INFO - Iter(train) [1270/6543] lr: 1.8622e-04 eta: 0:47:13 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.3749 grad_norm: 0.1750 06/02 03:52:21 - mmengine - INFO - Iter(train) [1280/6543] lr: 1.8597e-04 eta: 0:47:06 time: 0.4927 data_time: 0.0078 memory: 11508 loss: 1.3639 grad_norm: 0.1738 06/02 03:52:26 - mmengine - INFO - Iter(train) [1290/6543] lr: 1.8572e-04 eta: 0:46:59 time: 0.4919 data_time: 0.0080 memory: 11508 loss: 1.4359 grad_norm: 0.1738 06/02 03:52:31 - mmengine - INFO - Iter(train) [1300/6543] lr: 1.8546e-04 eta: 0:46:52 time: 0.4923 data_time: 0.0077 memory: 11508 loss: 1.4359 grad_norm: 0.1679 06/02 03:52:36 - mmengine - INFO - Iter(train) [1310/6543] lr: 1.8521e-04 eta: 0:46:45 time: 0.4922 data_time: 0.0080 memory: 11508 loss: 1.4841 grad_norm: 0.1679 06/02 03:52:41 - mmengine - INFO - Iter(train) [1320/6543] lr: 1.8494e-04 eta: 0:46:38 time: 0.4923 data_time: 0.0077 memory: 11508 loss: 1.5089 grad_norm: 0.1702 06/02 03:52:46 - mmengine - INFO - Iter(train) [1330/6543] lr: 1.8468e-04 eta: 0:46:31 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3994 grad_norm: 0.1680 06/02 03:52:51 - mmengine - INFO - Iter(train) [1340/6543] lr: 1.8442e-04 eta: 0:46:24 time: 0.4920 data_time: 0.0080 memory: 11508 loss: 1.4250 grad_norm: 0.1680 06/02 03:52:56 - mmengine - INFO - Iter(train) [1350/6543] lr: 1.8415e-04 eta: 0:46:17 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.4244 grad_norm: 0.1694 06/02 03:53:01 - mmengine - INFO - Iter(train) [1360/6543] lr: 1.8388e-04 eta: 0:46:10 time: 0.4939 data_time: 0.0080 memory: 11508 loss: 1.4382 grad_norm: 0.1620 06/02 03:53:06 - mmengine - INFO - Iter(train) [1370/6543] lr: 1.8361e-04 eta: 0:46:03 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.4170 grad_norm: 0.1620 06/02 03:53:11 - mmengine - INFO - Iter(train) [1380/6543] lr: 1.8334e-04 eta: 0:45:56 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.4492 grad_norm: 0.1639 06/02 03:53:16 - mmengine - INFO - Iter(train) [1390/6543] lr: 1.8307e-04 eta: 0:45:49 time: 0.4917 data_time: 0.0077 memory: 11508 loss: 1.4120 grad_norm: 0.1639 06/02 03:53:20 - mmengine - INFO - Iter(train) [1400/6543] lr: 1.8279e-04 eta: 0:45:42 time: 0.4923 data_time: 0.0078 memory: 11508 loss: 1.3327 grad_norm: 0.1661 06/02 03:53:25 - mmengine - INFO - Iter(train) [1410/6543] lr: 1.8251e-04 eta: 0:45:35 time: 0.4930 data_time: 0.0080 memory: 11508 loss: 1.3637 grad_norm: 0.1671 06/02 03:53:30 - mmengine - INFO - Iter(train) [1420/6543] lr: 1.8223e-04 eta: 0:45:28 time: 0.4916 data_time: 0.0077 memory: 11508 loss: 1.4912 grad_norm: 0.1671 06/02 03:53:35 - mmengine - INFO - Iter(train) [1430/6543] lr: 1.8195e-04 eta: 0:45:22 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.4267 grad_norm: 0.1640 06/02 03:53:40 - mmengine - INFO - Iter(train) [1440/6543] lr: 1.8166e-04 eta: 0:45:15 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.4607 grad_norm: 0.1649 06/02 03:53:45 - mmengine - INFO - Iter(train) [1450/6543] lr: 1.8138e-04 eta: 0:45:08 time: 0.4918 data_time: 0.0078 memory: 11508 loss: 1.4758 grad_norm: 0.1649 06/02 03:53:50 - mmengine - INFO - Iter(train) [1460/6543] lr: 1.8109e-04 eta: 0:45:01 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.4228 grad_norm: 0.1644 06/02 03:53:55 - mmengine - INFO - Iter(train) [1470/6543] lr: 1.8080e-04 eta: 0:44:55 time: 0.4919 data_time: 0.0078 memory: 11508 loss: 1.3366 grad_norm: 0.1644 06/02 03:54:00 - mmengine - INFO - Iter(train) [1480/6543] lr: 1.8050e-04 eta: 0:44:48 time: 0.4929 data_time: 0.0080 memory: 11508 loss: 1.4245 grad_norm: 0.1598 06/02 03:54:05 - mmengine - INFO - Iter(train) [1490/6543] lr: 1.8021e-04 eta: 0:44:42 time: 0.4930 data_time: 0.0080 memory: 11508 loss: 1.4540 grad_norm: 0.1572 06/02 03:54:10 - mmengine - INFO - Iter(train) [1500/6543] lr: 1.7991e-04 eta: 0:44:35 time: 0.4924 data_time: 0.0081 memory: 11508 loss: 1.3602 grad_norm: 0.1572 06/02 03:54:10 - mmengine - INFO - after_train_iter in EvaluateChatHook. 06/02 03:54:54 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user 请给我介绍五个上海的景点<end_of_turn> <start_of_turn>model 1. 上海故宫 2. 上海博物馆 3. 上海博物馆 4. 上海博物馆 5. 上海博物馆 上海故宫是上海最著名的景点,是世界上保存最完好的古代建筑群,是上海文化遗产。上海博物馆是上海最有名的博物馆,收藏了中国古代文物,是上海文化遗产。上海博物馆是上海最著名的博物馆,收藏了中国古代文物,是上海文化遗产。上海博物馆是上海最著名的博物馆,收藏了中国古代文物,是上海文化遗产。上海博物馆是上海最著名的博物馆,收藏了中国古代文物,是上海文化遗产。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,是上海文化遗产。上海故宫是上海最著名的景点,是世界上保存最完好的古代建筑群,是上海文化遗产。上海博物馆是上海最著名的博物馆,收藏了中国古代文物,是上海文化遗产。上海博物馆是上海最著名的博物馆,收藏了中国古代文物,是上海文化遗产。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,是上海文化遗产。上海故宫是上海最著名的景点,是世界上保存最完好的古代建筑群,是上海文化遗产。上海博物馆是上海最著名的博物馆,收藏了中国古代文物,是上海文化遗产。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,是上海文化遗产。上海故宫是上海最著名的景点,是世界上保存最完好的古代建筑群,是上海文化遗产。上海博物馆是上海最著名的博物馆,收藏了中国古代文物,是上海文化遗产。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,是上海文化遗产。上海故宫是上海最著名的景点,是世界上保存最完好的古代建筑群,是上海文化遗产。上海博物馆是上海最著名的博物馆,收藏了中国古代文物,是上海文化遗产。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,是上海文化遗产。上海故宫是上海最著名的景点,是世界上保存最完好的古代建筑群,是上海文化遗产。上海博物馆是上海最著名的博物馆,收藏了中国古代文物,是上海文化遗产。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,是上海文化遗产。上海故宫是上海最著名的景点,是世界上保存最完好的古代建筑群,是上海文化遗产。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,是上海文化遗产。上海故宫是上海最著名的景点,是世界上保存最完好的古代建筑群,是上海文化遗产。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,是上海文化遗产。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,是上海文化遗产。 上海博物馆是上海最著名的博物馆,收藏 06/02 03:54:56 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user Please tell me five scenic spots in Shanghai<end_of_turn> <start_of_turn>model 1. The Bund 2. The Oriental Pearl Tower 3. The Shanghai Disneyland 4. The Yu Garden 5. The Suzhou Museum<end_of_turn> 06/02 03:54:56 - mmengine - INFO - Saving checkpoint at 1500 iterations 06/02 03:55:03 - mmengine - INFO - Iter(train) [1510/6543] lr: 1.7961e-04 eta: 0:47:10 time: 5.3406 data_time: 4.8528 memory: 11508 loss: 1.4734 grad_norm: 0.1554 06/02 03:55:08 - mmengine - INFO - Iter(train) [1520/6543] lr: 1.7931e-04 eta: 0:47:02 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.4524 grad_norm: 0.1577 06/02 03:55:13 - mmengine - INFO - Iter(train) [1530/6543] lr: 1.7901e-04 eta: 0:46:54 time: 0.4915 data_time: 0.0078 memory: 11508 loss: 1.4442 grad_norm: 0.1577 06/02 03:55:18 - mmengine - INFO - Iter(train) [1540/6543] lr: 1.7871e-04 eta: 0:46:46 time: 0.4924 data_time: 0.0079 memory: 11508 loss: 1.3693 grad_norm: 0.1568 06/02 03:55:23 - mmengine - INFO - Iter(train) [1550/6543] lr: 1.7840e-04 eta: 0:46:38 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.3966 grad_norm: 0.1568 06/02 03:55:28 - mmengine - INFO - Iter(train) [1560/6543] lr: 1.7809e-04 eta: 0:46:31 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.3803 grad_norm: 0.1579 06/02 03:55:33 - mmengine - INFO - Iter(train) [1570/6543] lr: 1.7778e-04 eta: 0:46:23 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.4511 grad_norm: 0.1600 06/02 03:55:38 - mmengine - INFO - Iter(train) [1580/6543] lr: 1.7747e-04 eta: 0:46:15 time: 0.4918 data_time: 0.0078 memory: 11508 loss: 1.3730 grad_norm: 0.1600 06/02 03:55:42 - mmengine - INFO - Iter(train) [1590/6543] lr: 1.7716e-04 eta: 0:46:08 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.4587 grad_norm: 0.1614 06/02 03:55:47 - mmengine - INFO - Iter(train) [1600/6543] lr: 1.7684e-04 eta: 0:46:00 time: 0.4928 data_time: 0.0079 memory: 11508 loss: 1.4576 grad_norm: 0.1643 06/02 03:55:52 - mmengine - INFO - Iter(train) [1610/6543] lr: 1.7652e-04 eta: 0:45:52 time: 0.4917 data_time: 0.0077 memory: 11508 loss: 1.3895 grad_norm: 0.1643 06/02 03:55:57 - mmengine - INFO - Iter(train) [1620/6543] lr: 1.7620e-04 eta: 0:45:45 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.4023 grad_norm: 0.1679 06/02 03:56:02 - mmengine - INFO - Iter(train) [1630/6543] lr: 1.7588e-04 eta: 0:45:37 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.4085 grad_norm: 0.1679 06/02 03:56:07 - mmengine - INFO - Iter(train) [1640/6543] lr: 1.7556e-04 eta: 0:45:30 time: 0.4931 data_time: 0.0081 memory: 11508 loss: 1.3984 grad_norm: 0.1680 06/02 03:56:12 - mmengine - INFO - Iter(train) [1650/6543] lr: 1.7523e-04 eta: 0:45:22 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.3946 grad_norm: 0.1701 06/02 03:56:17 - mmengine - INFO - Iter(train) [1660/6543] lr: 1.7491e-04 eta: 0:45:15 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.4970 grad_norm: 0.1701 06/02 03:56:22 - mmengine - INFO - Iter(train) [1670/6543] lr: 1.7458e-04 eta: 0:45:07 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.4619 grad_norm: 0.1719 06/02 03:56:27 - mmengine - INFO - Iter(train) [1680/6543] lr: 1.7425e-04 eta: 0:45:00 time: 0.4927 data_time: 0.0078 memory: 11508 loss: 1.3786 grad_norm: 0.1710 06/02 03:56:32 - mmengine - INFO - Iter(train) [1690/6543] lr: 1.7391e-04 eta: 0:44:53 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.4470 grad_norm: 0.1710 06/02 03:56:37 - mmengine - INFO - Iter(train) [1700/6543] lr: 1.7358e-04 eta: 0:44:45 time: 0.4930 data_time: 0.0081 memory: 11508 loss: 1.4149 grad_norm: 0.1749 06/02 03:56:42 - mmengine - INFO - Iter(train) [1710/6543] lr: 1.7324e-04 eta: 0:44:38 time: 0.4924 data_time: 0.0081 memory: 11508 loss: 1.4189 grad_norm: 0.1749 06/02 03:56:46 - mmengine - INFO - Iter(train) [1720/6543] lr: 1.7291e-04 eta: 0:44:31 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.4510 grad_norm: 0.1673 06/02 03:56:51 - mmengine - INFO - Iter(train) [1730/6543] lr: 1.7257e-04 eta: 0:44:23 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.4744 grad_norm: 0.1640 06/02 03:56:56 - mmengine - INFO - Iter(train) [1740/6543] lr: 1.7223e-04 eta: 0:44:16 time: 0.4920 data_time: 0.0080 memory: 11508 loss: 1.4150 grad_norm: 0.1640 06/02 03:57:01 - mmengine - INFO - Iter(train) [1750/6543] lr: 1.7188e-04 eta: 0:44:09 time: 0.4924 data_time: 0.0077 memory: 11508 loss: 1.3495 grad_norm: 0.1649 06/02 03:57:06 - mmengine - INFO - Iter(train) [1760/6543] lr: 1.7154e-04 eta: 0:44:02 time: 0.4932 data_time: 0.0081 memory: 11508 loss: 1.3840 grad_norm: 0.1593 06/02 03:57:11 - mmengine - INFO - Iter(train) [1770/6543] lr: 1.7119e-04 eta: 0:43:55 time: 0.4918 data_time: 0.0079 memory: 11508 loss: 1.5036 grad_norm: 0.1593 06/02 03:57:16 - mmengine - INFO - Iter(train) [1780/6543] lr: 1.7084e-04 eta: 0:43:48 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.3534 grad_norm: 0.1560 06/02 03:57:21 - mmengine - INFO - Iter(train) [1790/6543] lr: 1.7049e-04 eta: 0:43:40 time: 0.4919 data_time: 0.0078 memory: 11508 loss: 1.4820 grad_norm: 0.1560 06/02 03:57:26 - mmengine - INFO - Iter(train) [1800/6543] lr: 1.7014e-04 eta: 0:43:33 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.3803 grad_norm: 0.1593 06/02 03:57:31 - mmengine - INFO - Iter(train) [1810/6543] lr: 1.6979e-04 eta: 0:43:26 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.4229 grad_norm: 0.1616 06/02 03:57:36 - mmengine - INFO - Iter(train) [1820/6543] lr: 1.6943e-04 eta: 0:43:19 time: 0.4922 data_time: 0.0079 memory: 11508 loss: 1.4056 grad_norm: 0.1616 06/02 03:57:41 - mmengine - INFO - Iter(train) [1830/6543] lr: 1.6907e-04 eta: 0:43:12 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.4546 grad_norm: 0.1648 06/02 03:57:46 - mmengine - INFO - Iter(train) [1840/6543] lr: 1.6871e-04 eta: 0:43:05 time: 0.4927 data_time: 0.0078 memory: 11508 loss: 1.4697 grad_norm: 0.1675 06/02 03:57:51 - mmengine - INFO - Iter(train) [1850/6543] lr: 1.6835e-04 eta: 0:42:58 time: 0.4918 data_time: 0.0079 memory: 11508 loss: 1.4118 grad_norm: 0.1675 06/02 03:57:55 - mmengine - INFO - Iter(train) [1860/6543] lr: 1.6799e-04 eta: 0:42:52 time: 0.4929 data_time: 0.0080 memory: 11508 loss: 1.4066 grad_norm: 0.1669 06/02 03:58:00 - mmengine - INFO - Iter(train) [1870/6543] lr: 1.6763e-04 eta: 0:42:45 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.3591 grad_norm: 0.1669 06/02 03:58:05 - mmengine - INFO - Iter(train) [1880/6543] lr: 1.6726e-04 eta: 0:42:38 time: 0.4929 data_time: 0.0080 memory: 11508 loss: 1.4454 grad_norm: 0.1714 06/02 03:58:10 - mmengine - INFO - Iter(train) [1890/6543] lr: 1.6690e-04 eta: 0:42:31 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3797 grad_norm: 0.1727 06/02 03:58:15 - mmengine - INFO - Iter(train) [1900/6543] lr: 1.6653e-04 eta: 0:42:24 time: 0.4935 data_time: 0.0081 memory: 11508 loss: 1.4004 grad_norm: 0.1727 06/02 03:58:20 - mmengine - INFO - Iter(train) [1910/6543] lr: 1.6616e-04 eta: 0:42:17 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.4234 grad_norm: 0.1767 06/02 03:58:25 - mmengine - INFO - Iter(train) [1920/6543] lr: 1.6578e-04 eta: 0:42:10 time: 0.4926 data_time: 0.0078 memory: 11508 loss: 1.3581 grad_norm: 0.1772 06/02 03:58:30 - mmengine - INFO - Iter(train) [1930/6543] lr: 1.6541e-04 eta: 0:42:04 time: 0.4922 data_time: 0.0081 memory: 11508 loss: 1.4141 grad_norm: 0.1772 06/02 03:58:35 - mmengine - INFO - Iter(train) [1940/6543] lr: 1.6504e-04 eta: 0:41:57 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.4389 grad_norm: 0.1775 06/02 03:58:40 - mmengine - INFO - Iter(train) [1950/6543] lr: 1.6466e-04 eta: 0:41:50 time: 0.4920 data_time: 0.0080 memory: 11508 loss: 1.3671 grad_norm: 0.1775 06/02 03:58:45 - mmengine - INFO - Iter(train) [1960/6543] lr: 1.6428e-04 eta: 0:41:43 time: 0.4925 data_time: 0.0077 memory: 11508 loss: 1.3825 grad_norm: 0.1745 06/02 03:58:50 - mmengine - INFO - Iter(train) [1970/6543] lr: 1.6390e-04 eta: 0:41:37 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.4214 grad_norm: 0.1703 06/02 03:58:55 - mmengine - INFO - Iter(train) [1980/6543] lr: 1.6352e-04 eta: 0:41:30 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.4377 grad_norm: 0.1703 06/02 03:58:59 - mmengine - INFO - Iter(train) [1990/6543] lr: 1.6314e-04 eta: 0:41:23 time: 0.4925 data_time: 0.0077 memory: 11508 loss: 1.4075 grad_norm: 0.1703 06/02 03:59:04 - mmengine - INFO - Exp name: gemma_2b_it_qlora_alpaca_e3_20240602_034031 06/02 03:59:04 - mmengine - INFO - Iter(train) [2000/6543] lr: 1.6275e-04 eta: 0:41:17 time: 0.4931 data_time: 0.0081 memory: 11508 loss: 1.4695 grad_norm: 0.1676 06/02 03:59:04 - mmengine - INFO - after_train_iter in EvaluateChatHook. 06/02 03:59:49 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user 请给我介绍五个上海的景点<end_of_turn> <start_of_turn>model 1. 上海故宫 2. 上海博物馆 3. 上海博物馆 4. 上海博物馆 5. 上海博物馆 上海故宫是上海最著名的景点,是世界上保存最完好的古代建筑群,拥有世界上最古老的建筑,是上海最著名的景点。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,包括陶器、漆器、陶瓷器、壁画、雕塑、家具等。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,包括陶器、漆器、陶瓷器、壁画、雕塑、家具等。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,包括陶器、漆器、陶瓷器、壁画、雕塑、家具等。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,包括陶器、漆器、陶瓷器、壁画、雕塑、家具等。 上海故宫是上海最著名的景点,是世界上保存最完好的古代建筑群,拥有世界上最古老的建筑,是上海最著名的景点。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,包括陶器、漆器、陶瓷器、壁画、雕塑、家具等。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,包括陶器、漆器、陶瓷器、壁画、雕塑、家具等。 上海故宫是上海最著名的景点,是世界上保存最完好的古代建筑群,拥有世界上最古老的建筑,是上海最著名的景点。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,包括陶器、漆器、陶瓷器、壁画、雕塑、家具等。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,包括陶器、漆器、陶瓷器、壁画、雕塑、家具等。 上海故宫是上海最著名的景点,是世界上保存最完好的古代建筑群,拥有世界上最古老的建筑,是上海最著名的景点。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,包括陶器、漆器、陶瓷器、壁画、雕塑、家具等。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,包括陶器、漆器、陶瓷器、壁画、雕塑、家具等。 上海故宫是上海最著名的景点,是世界上保存最完好的古代建筑群,拥有世界上最古老的建筑,是上海最著名的景点。 上海博物馆是上海最著名的博物馆,收藏了中国古代文物,包括陶器、漆器、陶瓷器、壁画、雕塑、家具等。 上海故宫是上海最著名的景点,是世界上保存最完好的古代建筑群,拥有世界上最古老的建筑,是上海最著名的景点。 上海 06/02 03:59:51 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user Please tell me five scenic spots in Shanghai<end_of_turn> <start_of_turn>model 1. The Bund 2. The Oriental Pearl Tower 3. The Shanghai Tower 4. The Yu Garden 5. The Shanghai Museum<end_of_turn> 06/02 03:59:51 - mmengine - INFO - Saving checkpoint at 2000 iterations 06/02 03:59:58 - mmengine - INFO - Iter(train) [2010/6543] lr: 1.6237e-04 eta: 0:43:00 time: 5.3717 data_time: 4.8849 memory: 11508 loss: 1.4404 grad_norm: 0.1676 06/02 04:00:03 - mmengine - INFO - Iter(train) [2020/6543] lr: 1.6198e-04 eta: 0:42:53 time: 0.4929 data_time: 0.0080 memory: 11508 loss: 1.4596 grad_norm: 0.1665 06/02 04:00:08 - mmengine - INFO - Iter(train) [2030/6543] lr: 1.6159e-04 eta: 0:42:45 time: 0.4917 data_time: 0.0079 memory: 11508 loss: 1.3803 grad_norm: 0.1665 06/02 04:00:13 - mmengine - INFO - Iter(train) [2040/6543] lr: 1.6120e-04 eta: 0:42:38 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.4630 grad_norm: 0.1632 06/02 04:00:18 - mmengine - INFO - Iter(train) [2050/6543] lr: 1.6081e-04 eta: 0:42:30 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.4776 grad_norm: 0.1615 06/02 04:00:23 - mmengine - INFO - Iter(train) [2060/6543] lr: 1.6041e-04 eta: 0:42:23 time: 0.4917 data_time: 0.0078 memory: 11508 loss: 1.3700 grad_norm: 0.1615 06/02 04:00:28 - mmengine - INFO - Iter(train) [2070/6543] lr: 1.6002e-04 eta: 0:42:16 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.3993 grad_norm: 0.1590 06/02 04:00:33 - mmengine - INFO - Iter(train) [2080/6543] lr: 1.5962e-04 eta: 0:42:09 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.4120 grad_norm: 0.1637 06/02 04:00:37 - mmengine - INFO - Iter(train) [2090/6543] lr: 1.5922e-04 eta: 0:42:01 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.3976 grad_norm: 0.1637 06/02 04:00:42 - mmengine - INFO - Iter(train) [2100/6543] lr: 1.5882e-04 eta: 0:41:54 time: 0.4925 data_time: 0.0077 memory: 11508 loss: 1.4082 grad_norm: 0.1639 06/02 04:00:47 - mmengine - INFO - Iter(train) [2110/6543] lr: 1.5842e-04 eta: 0:41:47 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.4301 grad_norm: 0.1639 06/02 04:00:52 - mmengine - INFO - Iter(train) [2120/6543] lr: 1.5802e-04 eta: 0:41:40 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.4263 grad_norm: 0.1646 06/02 04:00:57 - mmengine - INFO - Iter(train) [2130/6543] lr: 1.5762e-04 eta: 0:41:33 time: 0.4930 data_time: 0.0080 memory: 11508 loss: 1.3449 grad_norm: 0.1686 06/02 04:01:02 - mmengine - INFO - Iter(train) [2140/6543] lr: 1.5721e-04 eta: 0:41:25 time: 0.4925 data_time: 0.0082 memory: 11508 loss: 1.4205 grad_norm: 0.1686 06/02 04:01:07 - mmengine - INFO - Iter(train) [2150/6543] lr: 1.5680e-04 eta: 0:41:18 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.4011 grad_norm: 0.1688 06/02 04:01:12 - mmengine - INFO - Iter(train) [2160/6543] lr: 1.5640e-04 eta: 0:41:11 time: 0.4929 data_time: 0.0080 memory: 11508 loss: 1.4274 grad_norm: 0.1761 06/02 04:01:17 - mmengine - INFO - Iter(train) [2170/6543] lr: 1.5599e-04 eta: 0:41:04 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.4245 grad_norm: 0.1761 06/02 04:01:22 - mmengine - INFO - Iter(train) [2180/6543] lr: 1.5558e-04 eta: 0:40:57 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.4346 grad_norm: 0.1736 06/02 04:01:22 - mmengine - INFO - Exp name: gemma_2b_it_qlora_alpaca_e3_20240602_034031 06/02 04:01:22 - mmengine - WARNING - Reach the end of the dataloader, it will be restarted and continue to iterate. It is recommended to use `mmengine.dataset.InfiniteSampler` to enable the dataloader to iterate infinitely. 06/02 04:01:29 - mmengine - INFO - Iter(train) [2190/6543] lr: 1.5516e-04 eta: 0:40:54 time: 0.6950 data_time: 0.2084 memory: 11508 loss: 1.4103 grad_norm: 0.1736 06/02 04:01:34 - mmengine - INFO - Iter(train) [2200/6543] lr: 1.5475e-04 eta: 0:40:47 time: 0.4931 data_time: 0.0081 memory: 11508 loss: 1.3430 grad_norm: 0.1763 06/02 04:01:39 - mmengine - INFO - Iter(train) [2210/6543] lr: 1.5433e-04 eta: 0:40:40 time: 0.4926 data_time: 0.0080 memory: 11508 loss: 1.4228 grad_norm: 0.1806 06/02 04:01:44 - mmengine - INFO - Iter(train) [2220/6543] lr: 1.5392e-04 eta: 0:40:33 time: 0.4918 data_time: 0.0078 memory: 11508 loss: 1.4121 grad_norm: 0.1806 06/02 04:01:48 - mmengine - INFO - Iter(train) [2230/6543] lr: 1.5350e-04 eta: 0:40:26 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.4248 grad_norm: 0.1769 06/02 04:01:53 - mmengine - INFO - Iter(train) [2240/6543] lr: 1.5308e-04 eta: 0:40:19 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.3276 grad_norm: 0.1755 06/02 04:01:58 - mmengine - INFO - Iter(train) [2250/6543] lr: 1.5266e-04 eta: 0:40:12 time: 0.4924 data_time: 0.0081 memory: 11508 loss: 1.3616 grad_norm: 0.1755 06/02 04:02:03 - mmengine - INFO - Iter(train) [2260/6543] lr: 1.5224e-04 eta: 0:40:05 time: 0.4933 data_time: 0.0081 memory: 11508 loss: 1.3354 grad_norm: 0.1745 06/02 04:02:08 - mmengine - INFO - Iter(train) [2270/6543] lr: 1.5182e-04 eta: 0:39:58 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.2996 grad_norm: 0.1745 06/02 04:02:13 - mmengine - INFO - Iter(train) [2280/6543] lr: 1.5139e-04 eta: 0:39:51 time: 0.4931 data_time: 0.0081 memory: 11508 loss: 1.3225 grad_norm: 0.1741 06/02 04:02:18 - mmengine - INFO - Iter(train) [2290/6543] lr: 1.5097e-04 eta: 0:39:44 time: 0.4928 data_time: 0.0081 memory: 11508 loss: 1.3299 grad_norm: 0.1705 06/02 04:02:23 - mmengine - INFO - Iter(train) [2300/6543] lr: 1.5054e-04 eta: 0:39:38 time: 0.4920 data_time: 0.0080 memory: 11508 loss: 1.4036 grad_norm: 0.1705 06/02 04:02:28 - mmengine - INFO - Iter(train) [2310/6543] lr: 1.5011e-04 eta: 0:39:31 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.3353 grad_norm: 0.1683 06/02 04:02:33 - mmengine - INFO - Iter(train) [2320/6543] lr: 1.4969e-04 eta: 0:39:24 time: 0.4932 data_time: 0.0081 memory: 11508 loss: 1.3871 grad_norm: 0.1609 06/02 04:02:38 - mmengine - INFO - Iter(train) [2330/6543] lr: 1.4926e-04 eta: 0:39:17 time: 0.4922 data_time: 0.0081 memory: 11508 loss: 1.3734 grad_norm: 0.1609 06/02 04:02:43 - mmengine - INFO - Iter(train) [2340/6543] lr: 1.4882e-04 eta: 0:39:10 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.4159 grad_norm: 0.1614 06/02 04:02:48 - mmengine - INFO - Iter(train) [2350/6543] lr: 1.4839e-04 eta: 0:39:03 time: 0.4923 data_time: 0.0080 memory: 11508 loss: 1.3337 grad_norm: 0.1614 06/02 04:02:53 - mmengine - INFO - Iter(train) [2360/6543] lr: 1.4796e-04 eta: 0:38:57 time: 0.4929 data_time: 0.0078 memory: 11508 loss: 1.3291 grad_norm: 0.1596 06/02 04:02:57 - mmengine - INFO - Iter(train) [2370/6543] lr: 1.4752e-04 eta: 0:38:50 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.3258 grad_norm: 0.1619 06/02 04:03:02 - mmengine - INFO - Iter(train) [2380/6543] lr: 1.4709e-04 eta: 0:38:43 time: 0.4922 data_time: 0.0081 memory: 11508 loss: 1.3055 grad_norm: 0.1619 06/02 04:03:07 - mmengine - INFO - Iter(train) [2390/6543] lr: 1.4665e-04 eta: 0:38:36 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.3674 grad_norm: 0.1627 06/02 04:03:12 - mmengine - INFO - Iter(train) [2400/6543] lr: 1.4621e-04 eta: 0:38:30 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.3312 grad_norm: 0.1608 06/02 04:03:17 - mmengine - INFO - Iter(train) [2410/6543] lr: 1.4577e-04 eta: 0:38:23 time: 0.4922 data_time: 0.0081 memory: 11508 loss: 1.3551 grad_norm: 0.1608 06/02 04:03:22 - mmengine - INFO - Iter(train) [2420/6543] lr: 1.4533e-04 eta: 0:38:16 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.3554 grad_norm: 0.1624 06/02 04:03:27 - mmengine - INFO - Iter(train) [2430/6543] lr: 1.4489e-04 eta: 0:38:10 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.3816 grad_norm: 0.1624 06/02 04:03:32 - mmengine - INFO - Iter(train) [2440/6543] lr: 1.4445e-04 eta: 0:38:03 time: 0.4936 data_time: 0.0081 memory: 11508 loss: 1.3351 grad_norm: 0.1639 06/02 04:03:37 - mmengine - INFO - Iter(train) [2450/6543] lr: 1.4400e-04 eta: 0:37:56 time: 0.4929 data_time: 0.0080 memory: 11508 loss: 1.3798 grad_norm: 0.1662 06/02 04:03:42 - mmengine - INFO - Iter(train) [2460/6543] lr: 1.4356e-04 eta: 0:37:50 time: 0.4922 data_time: 0.0080 memory: 11508 loss: 1.2750 grad_norm: 0.1662 06/02 04:03:47 - mmengine - INFO - Iter(train) [2470/6543] lr: 1.4311e-04 eta: 0:37:43 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.2926 grad_norm: 0.1658 06/02 04:03:52 - mmengine - INFO - Iter(train) [2480/6543] lr: 1.4266e-04 eta: 0:37:37 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.3371 grad_norm: 0.1672 06/02 04:03:57 - mmengine - INFO - Iter(train) [2490/6543] lr: 1.4222e-04 eta: 0:37:30 time: 0.4935 data_time: 0.0090 memory: 11508 loss: 1.3823 grad_norm: 0.1672 06/02 04:04:01 - mmengine - INFO - Iter(train) [2500/6543] lr: 1.4177e-04 eta: 0:37:24 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.3937 grad_norm: 0.1695 06/02 04:04:01 - mmengine - INFO - after_train_iter in EvaluateChatHook. 06/02 04:04:20 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user 请给我介绍五个上海的景点<end_of_turn> <start_of_turn>model 1. 上海故宫 2. 上海博物馆 3. 上海虹桥 4. 上海天坛 5. 上海中山公园 上海故宫是上海最著名的景点之一,它拥有了世界上最古老的建筑,是上海文明史上的重要文化遗产。上海博物馆是上海重要的文化教育机构,它拥有了世界上最古老的博物馆,是上海文明史上的重要文化遗产。上海虹桥是上海重要的交通枢纽,它拥有了世界上最古老的桥梁,是上海文明史上的重要文化遗产。上海天坛是上海重要的宗教文化中心,它拥有了世界上最古老的寺庙,是上海文明史上的重要文化遗产。上海中山公园是上海重要的文化娱乐场所,它拥有了世界上最古老的公园,是上海文明史上的重要文化遗产。 上海的景点是上海文明史上的重要文化遗产,是上海文明史上的重要文化遗产。 1. 上海故宫 2. 上海博物馆 3. 上海虹桥 4. 上海天坛 5. 上海中山公园 上海的景点是上海文明史上的重要文化遗产,是上海文明史上的重要文化遗产。<end_of_turn> 06/02 04:04:22 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user Please tell me five scenic spots in Shanghai<end_of_turn> <start_of_turn>model 1. The Bund 2. The Oriental Pearl Tower 3. The Shanghai Tower 4. The Yu Garden 5. The Shanghai Museum<end_of_turn> 06/02 04:04:22 - mmengine - INFO - Saving checkpoint at 2500 iterations 06/02 04:04:29 - mmengine - INFO - Iter(train) [2510/6543] lr: 1.4132e-04 eta: 0:37:54 time: 2.8005 data_time: 2.3143 memory: 11508 loss: 1.2985 grad_norm: 0.1695 06/02 04:04:34 - mmengine - INFO - Iter(train) [2520/6543] lr: 1.4086e-04 eta: 0:37:47 time: 0.4940 data_time: 0.0079 memory: 11508 loss: 1.3612 grad_norm: 0.1715 06/02 04:04:39 - mmengine - INFO - Iter(train) [2530/6543] lr: 1.4041e-04 eta: 0:37:41 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.4245 grad_norm: 0.1672 06/02 04:04:44 - mmengine - INFO - Iter(train) [2540/6543] lr: 1.3996e-04 eta: 0:37:34 time: 0.4918 data_time: 0.0079 memory: 11508 loss: 1.3337 grad_norm: 0.1672 06/02 04:04:49 - mmengine - INFO - Iter(train) [2550/6543] lr: 1.3951e-04 eta: 0:37:27 time: 0.4923 data_time: 0.0078 memory: 11508 loss: 1.3829 grad_norm: 0.1707 06/02 04:04:54 - mmengine - INFO - Iter(train) [2560/6543] lr: 1.3905e-04 eta: 0:37:20 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3386 grad_norm: 0.1714 06/02 04:04:59 - mmengine - INFO - Iter(train) [2570/6543] lr: 1.3859e-04 eta: 0:37:14 time: 0.4919 data_time: 0.0080 memory: 11508 loss: 1.3685 grad_norm: 0.1714 06/02 04:05:04 - mmengine - INFO - Iter(train) [2580/6543] lr: 1.3814e-04 eta: 0:37:07 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.4593 grad_norm: 0.1711 06/02 04:05:09 - mmengine - INFO - Iter(train) [2590/6543] lr: 1.3768e-04 eta: 0:37:00 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.3394 grad_norm: 0.1711 06/02 04:05:14 - mmengine - INFO - Iter(train) [2600/6543] lr: 1.3722e-04 eta: 0:36:54 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3364 grad_norm: 0.1707 06/02 04:05:19 - mmengine - INFO - Iter(train) [2610/6543] lr: 1.3676e-04 eta: 0:36:47 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.3387 grad_norm: 0.1705 06/02 04:05:24 - mmengine - INFO - Iter(train) [2620/6543] lr: 1.3630e-04 eta: 0:36:40 time: 0.4924 data_time: 0.0084 memory: 11508 loss: 1.4058 grad_norm: 0.1705 06/02 04:05:29 - mmengine - INFO - Iter(train) [2630/6543] lr: 1.3584e-04 eta: 0:36:34 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.2916 grad_norm: 0.1726 06/02 04:05:34 - mmengine - INFO - Iter(train) [2640/6543] lr: 1.3538e-04 eta: 0:36:27 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3240 grad_norm: 0.1717 06/02 04:05:38 - mmengine - INFO - Iter(train) [2650/6543] lr: 1.3491e-04 eta: 0:36:20 time: 0.4921 data_time: 0.0079 memory: 11508 loss: 1.2980 grad_norm: 0.1717 06/02 04:05:43 - mmengine - INFO - Iter(train) [2660/6543] lr: 1.3445e-04 eta: 0:36:14 time: 0.4929 data_time: 0.0080 memory: 11508 loss: 1.3914 grad_norm: 0.1711 06/02 04:05:48 - mmengine - INFO - Iter(train) [2670/6543] lr: 1.3398e-04 eta: 0:36:07 time: 0.4918 data_time: 0.0078 memory: 11508 loss: 1.3801 grad_norm: 0.1711 06/02 04:05:53 - mmengine - INFO - Iter(train) [2680/6543] lr: 1.3352e-04 eta: 0:36:01 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3659 grad_norm: 0.1725 06/02 04:05:58 - mmengine - INFO - Iter(train) [2690/6543] lr: 1.3305e-04 eta: 0:35:54 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3176 grad_norm: 0.1731 06/02 04:06:03 - mmengine - INFO - Iter(train) [2700/6543] lr: 1.3258e-04 eta: 0:35:48 time: 0.4921 data_time: 0.0080 memory: 11508 loss: 1.4524 grad_norm: 0.1731 06/02 04:06:08 - mmengine - INFO - Iter(train) [2710/6543] lr: 1.3211e-04 eta: 0:35:41 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.3255 grad_norm: 0.1712 06/02 04:06:13 - mmengine - INFO - Iter(train) [2720/6543] lr: 1.3164e-04 eta: 0:35:34 time: 0.4926 data_time: 0.0078 memory: 11508 loss: 1.3588 grad_norm: 0.1725 06/02 04:06:18 - mmengine - INFO - Iter(train) [2730/6543] lr: 1.3117e-04 eta: 0:35:28 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.2092 grad_norm: 0.1725 06/02 04:06:23 - mmengine - INFO - Iter(train) [2740/6543] lr: 1.3070e-04 eta: 0:35:21 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.3592 grad_norm: 0.1762 06/02 04:06:28 - mmengine - INFO - Iter(train) [2750/6543] lr: 1.3023e-04 eta: 0:35:15 time: 0.4921 data_time: 0.0079 memory: 11508 loss: 1.4328 grad_norm: 0.1762 06/02 04:06:33 - mmengine - INFO - Iter(train) [2760/6543] lr: 1.2976e-04 eta: 0:35:09 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.3384 grad_norm: 0.1763 06/02 04:06:38 - mmengine - INFO - Iter(train) [2770/6543] lr: 1.2929e-04 eta: 0:35:02 time: 0.4923 data_time: 0.0078 memory: 11508 loss: 1.3372 grad_norm: 0.1755 06/02 04:06:42 - mmengine - INFO - Iter(train) [2780/6543] lr: 1.2881e-04 eta: 0:34:56 time: 0.4921 data_time: 0.0079 memory: 11508 loss: 1.4127 grad_norm: 0.1755 06/02 04:06:47 - mmengine - INFO - Iter(train) [2790/6543] lr: 1.2834e-04 eta: 0:34:49 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.3195 grad_norm: 0.1747 06/02 04:06:52 - mmengine - INFO - Iter(train) [2800/6543] lr: 1.2786e-04 eta: 0:34:43 time: 0.4930 data_time: 0.0080 memory: 11508 loss: 1.3814 grad_norm: 0.1761 06/02 04:06:57 - mmengine - INFO - Iter(train) [2810/6543] lr: 1.2739e-04 eta: 0:34:36 time: 0.4919 data_time: 0.0080 memory: 11508 loss: 1.3363 grad_norm: 0.1761 06/02 04:07:02 - mmengine - INFO - Iter(train) [2820/6543] lr: 1.2691e-04 eta: 0:34:30 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.3448 grad_norm: 0.1757 06/02 04:07:07 - mmengine - INFO - Iter(train) [2830/6543] lr: 1.2644e-04 eta: 0:34:24 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.2978 grad_norm: 0.1757 06/02 04:07:12 - mmengine - INFO - Iter(train) [2840/6543] lr: 1.2596e-04 eta: 0:34:17 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.3761 grad_norm: 0.1723 06/02 04:07:17 - mmengine - INFO - Iter(train) [2850/6543] lr: 1.2548e-04 eta: 0:34:11 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.3413 grad_norm: 0.1706 06/02 04:07:22 - mmengine - INFO - Iter(train) [2860/6543] lr: 1.2500e-04 eta: 0:34:04 time: 0.4921 data_time: 0.0079 memory: 11508 loss: 1.4397 grad_norm: 0.1706 06/02 04:07:27 - mmengine - INFO - Iter(train) [2870/6543] lr: 1.2452e-04 eta: 0:33:58 time: 0.4929 data_time: 0.0079 memory: 11508 loss: 1.4184 grad_norm: 0.1723 06/02 04:07:32 - mmengine - INFO - Iter(train) [2880/6543] lr: 1.2404e-04 eta: 0:33:52 time: 0.4932 data_time: 0.0078 memory: 11508 loss: 1.4025 grad_norm: 0.1734 06/02 04:07:37 - mmengine - INFO - Iter(train) [2890/6543] lr: 1.2356e-04 eta: 0:33:45 time: 0.4917 data_time: 0.0078 memory: 11508 loss: 1.3367 grad_norm: 0.1734 06/02 04:07:42 - mmengine - INFO - Iter(train) [2900/6543] lr: 1.2308e-04 eta: 0:33:39 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.3139 grad_norm: 0.1721 06/02 04:07:46 - mmengine - INFO - Iter(train) [2910/6543] lr: 1.2260e-04 eta: 0:33:33 time: 0.4917 data_time: 0.0078 memory: 11508 loss: 1.3598 grad_norm: 0.1721 06/02 04:07:51 - mmengine - INFO - Iter(train) [2920/6543] lr: 1.2211e-04 eta: 0:33:26 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.4285 grad_norm: 0.1730 06/02 04:07:56 - mmengine - INFO - Iter(train) [2930/6543] lr: 1.2163e-04 eta: 0:33:20 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.3749 grad_norm: 0.1742 06/02 04:08:01 - mmengine - INFO - Iter(train) [2940/6543] lr: 1.2115e-04 eta: 0:33:14 time: 0.4920 data_time: 0.0080 memory: 11508 loss: 1.4174 grad_norm: 0.1742 06/02 04:08:06 - mmengine - INFO - Iter(train) [2950/6543] lr: 1.2066e-04 eta: 0:33:08 time: 0.4929 data_time: 0.0080 memory: 11508 loss: 1.2953 grad_norm: 0.1736 06/02 04:08:11 - mmengine - INFO - Iter(train) [2960/6543] lr: 1.2018e-04 eta: 0:33:01 time: 0.4927 data_time: 0.0078 memory: 11508 loss: 1.4379 grad_norm: 0.1728 06/02 04:08:16 - mmengine - INFO - Iter(train) [2970/6543] lr: 1.1969e-04 eta: 0:32:55 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.3286 grad_norm: 0.1728 06/02 04:08:21 - mmengine - INFO - Iter(train) [2980/6543] lr: 1.1921e-04 eta: 0:32:49 time: 0.4923 data_time: 0.0078 memory: 11508 loss: 1.3670 grad_norm: 0.1718 06/02 04:08:26 - mmengine - INFO - Iter(train) [2990/6543] lr: 1.1872e-04 eta: 0:32:43 time: 0.4921 data_time: 0.0080 memory: 11508 loss: 1.3526 grad_norm: 0.1718 06/02 04:08:31 - mmengine - INFO - Exp name: gemma_2b_it_qlora_alpaca_e3_20240602_034031 06/02 04:08:31 - mmengine - INFO - Iter(train) [3000/6543] lr: 1.1824e-04 eta: 0:32:36 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3925 grad_norm: 0.1724 06/02 04:08:31 - mmengine - INFO - after_train_iter in EvaluateChatHook. 06/02 04:09:15 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user 请给我介绍五个上海的景点<end_of_turn> <start_of_turn>model 1. 上海故宫 2. 上海博物馆 3. 上海虹桥 4. 上海天坛 5. 上海中山公园 上海拥有众多历史悠久的景点,如上海故宫、上海博物馆、上海虹桥、上海天坛和上海中山公园,这些景点都拥有独特的历史文化,是上海不可或缺的景点。 上海故宫是上海最古老的景点,是世界上保存最完好的古代建筑,是上海重要的历史文化遗产。上海博物馆是上海重要的科学文化教育机构,收藏了世界上最完好的古代文物。上海虹桥是上海重要的交通枢纽,是上海重要的文化娱乐活动中心。上海天坛是上海重要的宗教文化中心,是上海重要的宗教文化活动中心。上海中山公园是上海重要的绿化娱乐休闲地,是上海重要的文化娱乐活动中心。 上海拥有众多历史悠久的景点,是上海不可或缺的景点,是上海重要的文化娱乐活动中心。 希望我的回答能帮助您! 06/02 04:09:18 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user Please tell me five scenic spots in Shanghai<end_of_turn> <start_of_turn>model Five scenic spots in Shanghai are: 1. The Bund 2. The Oriental Pearl Tower 3. The Shanghai Tower 4. The Yu Garden 5. The Jade Buddha Temple<end_of_turn> 06/02 04:09:18 - mmengine - INFO - Saving checkpoint at 3000 iterations 06/02 04:09:26 - mmengine - INFO - Iter(train) [3010/6543] lr: 1.1775e-04 eta: 0:33:29 time: 5.4832 data_time: 4.9954 memory: 11508 loss: 1.3339 grad_norm: 0.1739 06/02 04:09:31 - mmengine - INFO - Iter(train) [3020/6543] lr: 1.1726e-04 eta: 0:33:22 time: 0.4916 data_time: 0.0079 memory: 11508 loss: 1.3802 grad_norm: 0.1739 06/02 04:09:35 - mmengine - INFO - Iter(train) [3030/6543] lr: 1.1677e-04 eta: 0:33:15 time: 0.4924 data_time: 0.0079 memory: 11508 loss: 1.3003 grad_norm: 0.1717 06/02 04:09:40 - mmengine - INFO - Iter(train) [3040/6543] lr: 1.1629e-04 eta: 0:33:09 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.3797 grad_norm: 0.1717 06/02 04:09:45 - mmengine - INFO - Iter(train) [3050/6543] lr: 1.1580e-04 eta: 0:33:02 time: 0.4914 data_time: 0.0077 memory: 11508 loss: 1.3252 grad_norm: 0.1717 06/02 04:09:50 - mmengine - INFO - Iter(train) [3060/6543] lr: 1.1531e-04 eta: 0:32:56 time: 0.4926 data_time: 0.0080 memory: 11508 loss: 1.3242 grad_norm: 0.1703 06/02 04:09:55 - mmengine - INFO - Iter(train) [3070/6543] lr: 1.1482e-04 eta: 0:32:49 time: 0.4916 data_time: 0.0078 memory: 11508 loss: 1.3430 grad_norm: 0.1703 06/02 04:10:00 - mmengine - INFO - Iter(train) [3080/6543] lr: 1.1433e-04 eta: 0:32:43 time: 0.4926 data_time: 0.0080 memory: 11508 loss: 1.3453 grad_norm: 0.1740 06/02 04:10:05 - mmengine - INFO - Iter(train) [3090/6543] lr: 1.1384e-04 eta: 0:32:36 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.3743 grad_norm: 0.1728 06/02 04:10:10 - mmengine - INFO - Iter(train) [3100/6543] lr: 1.1335e-04 eta: 0:32:30 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.3548 grad_norm: 0.1728 06/02 04:10:15 - mmengine - INFO - Iter(train) [3110/6543] lr: 1.1286e-04 eta: 0:32:23 time: 0.4928 data_time: 0.0079 memory: 11508 loss: 1.3656 grad_norm: 0.1742 06/02 04:10:20 - mmengine - INFO - Iter(train) [3120/6543] lr: 1.1237e-04 eta: 0:32:17 time: 0.4929 data_time: 0.0080 memory: 11508 loss: 1.3154 grad_norm: 0.1738 06/02 04:10:25 - mmengine - INFO - Iter(train) [3130/6543] lr: 1.1188e-04 eta: 0:32:10 time: 0.4926 data_time: 0.0085 memory: 11508 loss: 1.3811 grad_norm: 0.1738 06/02 04:10:30 - mmengine - INFO - Iter(train) [3140/6543] lr: 1.1138e-04 eta: 0:32:04 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3373 grad_norm: 0.1756 06/02 04:10:35 - mmengine - INFO - Iter(train) [3150/6543] lr: 1.1089e-04 eta: 0:31:58 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.3638 grad_norm: 0.1756 06/02 04:10:39 - mmengine - INFO - Iter(train) [3160/6543] lr: 1.1040e-04 eta: 0:31:51 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.3672 grad_norm: 0.1858 06/02 04:10:44 - mmengine - INFO - Iter(train) [3170/6543] lr: 1.0991e-04 eta: 0:31:45 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.3493 grad_norm: 0.1855 06/02 04:10:49 - mmengine - INFO - Iter(train) [3180/6543] lr: 1.0942e-04 eta: 0:31:38 time: 0.4922 data_time: 0.0080 memory: 11508 loss: 1.3056 grad_norm: 0.1855 06/02 04:10:54 - mmengine - INFO - Iter(train) [3190/6543] lr: 1.0892e-04 eta: 0:31:32 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.3848 grad_norm: 0.1936 06/02 04:10:59 - mmengine - INFO - Iter(train) [3200/6543] lr: 1.0843e-04 eta: 0:31:25 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.2942 grad_norm: 0.1949 06/02 04:11:04 - mmengine - INFO - Iter(train) [3210/6543] lr: 1.0794e-04 eta: 0:31:19 time: 0.4920 data_time: 0.0080 memory: 11508 loss: 1.3965 grad_norm: 0.1949 06/02 04:11:09 - mmengine - INFO - Iter(train) [3220/6543] lr: 1.0744e-04 eta: 0:31:13 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.4331 grad_norm: 0.2036 06/02 04:11:14 - mmengine - INFO - Iter(train) [3230/6543] lr: 1.0695e-04 eta: 0:31:06 time: 0.4919 data_time: 0.0078 memory: 11508 loss: 1.3007 grad_norm: 0.2036 06/02 04:11:19 - mmengine - INFO - Iter(train) [3240/6543] lr: 1.0645e-04 eta: 0:31:00 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.4063 grad_norm: 0.2016 06/02 04:11:24 - mmengine - INFO - Iter(train) [3250/6543] lr: 1.0596e-04 eta: 0:30:54 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.3512 grad_norm: 0.2048 06/02 04:11:29 - mmengine - INFO - Iter(train) [3260/6543] lr: 1.0547e-04 eta: 0:30:47 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.3737 grad_norm: 0.2048 06/02 04:11:34 - mmengine - INFO - Iter(train) [3270/6543] lr: 1.0497e-04 eta: 0:30:41 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.4158 grad_norm: 0.2041 06/02 04:11:39 - mmengine - INFO - Iter(train) [3280/6543] lr: 1.0448e-04 eta: 0:30:35 time: 0.4926 data_time: 0.0078 memory: 11508 loss: 1.3181 grad_norm: 0.2071 06/02 04:11:43 - mmengine - INFO - Iter(train) [3290/6543] lr: 1.0398e-04 eta: 0:30:28 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.3208 grad_norm: 0.2071 06/02 04:11:48 - mmengine - INFO - Iter(train) [3300/6543] lr: 1.0349e-04 eta: 0:30:22 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.3133 grad_norm: 0.2100 06/02 04:11:53 - mmengine - INFO - Iter(train) [3310/6543] lr: 1.0299e-04 eta: 0:30:16 time: 0.4921 data_time: 0.0079 memory: 11508 loss: 1.4277 grad_norm: 0.2100 06/02 04:11:58 - mmengine - INFO - Iter(train) [3320/6543] lr: 1.0250e-04 eta: 0:30:09 time: 0.4931 data_time: 0.0081 memory: 11508 loss: 1.3513 grad_norm: 0.2085 06/02 04:12:03 - mmengine - INFO - Iter(train) [3330/6543] lr: 1.0200e-04 eta: 0:30:03 time: 0.4931 data_time: 0.0081 memory: 11508 loss: 1.3429 grad_norm: 0.2069 06/02 04:12:08 - mmengine - INFO - Iter(train) [3340/6543] lr: 1.0151e-04 eta: 0:29:57 time: 0.4925 data_time: 0.0083 memory: 11508 loss: 1.3706 grad_norm: 0.2069 06/02 04:12:13 - mmengine - INFO - Iter(train) [3350/6543] lr: 1.0101e-04 eta: 0:29:51 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3687 grad_norm: 0.2012 06/02 04:12:18 - mmengine - INFO - Iter(train) [3360/6543] lr: 1.0052e-04 eta: 0:29:44 time: 0.4926 data_time: 0.0078 memory: 11508 loss: 1.4320 grad_norm: 0.2069 06/02 04:12:23 - mmengine - INFO - Iter(train) [3370/6543] lr: 1.0002e-04 eta: 0:29:38 time: 0.4928 data_time: 0.0088 memory: 11508 loss: 1.2986 grad_norm: 0.2069 06/02 04:12:28 - mmengine - INFO - Iter(train) [3380/6543] lr: 9.9530e-05 eta: 0:29:32 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.2843 grad_norm: 0.1990 06/02 04:12:33 - mmengine - INFO - Iter(train) [3390/6543] lr: 9.9035e-05 eta: 0:29:26 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.3140 grad_norm: 0.1990 06/02 04:12:38 - mmengine - INFO - Iter(train) [3400/6543] lr: 9.8540e-05 eta: 0:29:19 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.3979 grad_norm: 0.2056 06/02 04:12:43 - mmengine - INFO - Iter(train) [3410/6543] lr: 9.8045e-05 eta: 0:29:13 time: 0.4926 data_time: 0.0078 memory: 11508 loss: 1.4103 grad_norm: 0.2029 06/02 04:12:48 - mmengine - INFO - Iter(train) [3420/6543] lr: 9.7550e-05 eta: 0:29:07 time: 0.4927 data_time: 0.0084 memory: 11508 loss: 1.3641 grad_norm: 0.2029 06/02 04:12:52 - mmengine - INFO - Iter(train) [3430/6543] lr: 9.7055e-05 eta: 0:29:01 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.3686 grad_norm: 0.2073 06/02 04:12:57 - mmengine - INFO - Iter(train) [3440/6543] lr: 9.6561e-05 eta: 0:28:55 time: 0.4930 data_time: 0.0080 memory: 11508 loss: 1.3445 grad_norm: 0.2075 06/02 04:13:02 - mmengine - INFO - Iter(train) [3450/6543] lr: 9.6066e-05 eta: 0:28:48 time: 0.4921 data_time: 0.0081 memory: 11508 loss: 1.2983 grad_norm: 0.2075 06/02 04:13:07 - mmengine - INFO - Iter(train) [3460/6543] lr: 9.5571e-05 eta: 0:28:42 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.3036 grad_norm: 0.2052 06/02 04:13:12 - mmengine - INFO - Iter(train) [3470/6543] lr: 9.5077e-05 eta: 0:28:36 time: 0.4918 data_time: 0.0077 memory: 11508 loss: 1.3261 grad_norm: 0.2052 06/02 04:13:17 - mmengine - INFO - Iter(train) [3480/6543] lr: 9.4583e-05 eta: 0:28:30 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3395 grad_norm: 0.2002 06/02 04:13:22 - mmengine - INFO - Iter(train) [3490/6543] lr: 9.4089e-05 eta: 0:28:24 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.3388 grad_norm: 0.2094 06/02 04:13:27 - mmengine - INFO - Iter(train) [3500/6543] lr: 9.3594e-05 eta: 0:28:17 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.3546 grad_norm: 0.2094 06/02 04:13:27 - mmengine - INFO - after_train_iter in EvaluateChatHook. 06/02 04:14:11 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user 请给我介绍五个上海的景点<end_of_turn> <start_of_turn>model 1. 上海故宫 2. 上海博物馆 3. 上海虹桥 4. 上海天坛 5. 上海南山公园 6. 上海市博物馆 7. 上海科学技术馆 8. 上海海洋博物馆 9. 上海博物馆 10. 上海自然博物馆 11. 上海故宫 12. 上海博物馆 13. 上海虹桥 14. 上海天坛 15. 上海南山公园 16. 上海科学技术馆 17. 上海博物馆 18. 上海自然博物馆 19. 上海海洋博物馆 20. 上海博物馆 21. 上海自然博物馆 22. 上海博物馆 23. 上海自然博物馆 24. 上海博物馆 25. 上海博物馆 26. 上海博物馆 27. 上海博物馆 28. 上海博物馆 29. 上海博物馆 30. 上海博物馆 31. 上海博物馆 32. 上海博物馆 33. 上海博物馆 34. 上海博物馆 35. 上海博物馆 36. 上海博物馆 37. 上海博物馆 38. 上海博物馆 39. 上海博物馆 40. 上海博物馆 41. 上海博物馆 42. 上海博物馆 43. 上海博物馆 44. 上海博物馆 45. 上海博物馆 46. 上海博物馆 47. 上海博物馆 48. 上海博物馆 49. 上海博物馆 50. 上海博物馆 51. 上海博物馆 52. 上海博物馆 53. 上海博物馆 54. 上海博物馆 55. 上海博物馆 56. 上海博物馆 57. 上海博物馆 58. 上海博物馆 59. 上海博物馆 60. 上海博物馆 61. 上海博物馆 62. 上海博物馆 63. 上海博物馆 64. 上海博物馆 65. 上海博物馆 66. 上海博物馆 67. 上海博物馆 68. 上海博物馆 69. 上海博物馆 70. 上海博物馆 71. 上海博物馆 72. 上海博物馆 73. 上海博物馆 74. 上海博物馆 75. 上海博物馆 76. 上海博物馆 77. 上海博物馆 78. 上海博物馆 79. 上海博物馆 80. 上海博物馆 81. 上海博物馆 82. 上海博物馆 83. 上海博物馆 84. 上海博物馆 85. 上海博物馆 86. 上海博物馆 87. 上海博物馆 88. 上海博物馆 89. 上海博物馆 90. 上海博物馆 91. 上海博物馆 92. 上海博物馆 93. 上海博物馆 94. 上海博物馆 95. 上海博物馆 96. 上海博物馆 97. 上海博物馆 98. 上海博物馆 06/02 04:14:20 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user Please tell me five scenic spots in Shanghai<end_of_turn> <start_of_turn>model Five scenic spots in Shanghai include the Bund, the Oriental Pearl Tower, the Yu Garden, the Shanghai Disneyland, and the Shanghai Museum. The Bund is a waterfront promenade that runs along the Huangpu River and is lined with shops, restaurants, and attractions. The Oriental Pearl Tower is a 632-meter tall tower that is the tallest structure in Shanghai. The Yu Garden is a traditional Chinese garden located in the heart of the city. The Shanghai Disneyland is a theme park located in the Pudong district. The Shanghai Museum is a museum located in the heart of the city.<end_of_turn> 06/02 04:14:20 - mmengine - INFO - Saving checkpoint at 3500 iterations 06/02 04:14:27 - mmengine - INFO - Iter(train) [3510/6543] lr: 9.3101e-05 eta: 0:28:59 time: 5.9991 data_time: 5.5111 memory: 11508 loss: 1.3865 grad_norm: 0.2116 06/02 04:14:32 - mmengine - INFO - Iter(train) [3520/6543] lr: 9.2607e-05 eta: 0:28:53 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.3243 grad_norm: 0.2140 06/02 04:14:37 - mmengine - INFO - Iter(train) [3530/6543] lr: 9.2113e-05 eta: 0:28:46 time: 0.4916 data_time: 0.0078 memory: 11508 loss: 1.3480 grad_norm: 0.2140 06/02 04:14:42 - mmengine - INFO - Iter(train) [3540/6543] lr: 9.1620e-05 eta: 0:28:40 time: 0.4925 data_time: 0.0080 memory: 11508 loss: 1.3178 grad_norm: 0.2129 06/02 04:14:47 - mmengine - INFO - Iter(train) [3550/6543] lr: 9.1127e-05 eta: 0:28:33 time: 0.4916 data_time: 0.0077 memory: 11508 loss: 1.3249 grad_norm: 0.2129 06/02 04:14:52 - mmengine - INFO - Iter(train) [3560/6543] lr: 9.0634e-05 eta: 0:28:27 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.3383 grad_norm: 0.2072 06/02 04:14:56 - mmengine - INFO - Iter(train) [3570/6543] lr: 9.0141e-05 eta: 0:28:20 time: 0.4931 data_time: 0.0078 memory: 11508 loss: 1.3330 grad_norm: 0.2089 06/02 04:15:01 - mmengine - INFO - Iter(train) [3580/6543] lr: 8.9649e-05 eta: 0:28:14 time: 0.4917 data_time: 0.0078 memory: 11508 loss: 1.3630 grad_norm: 0.2089 06/02 04:15:06 - mmengine - INFO - Iter(train) [3590/6543] lr: 8.9157e-05 eta: 0:28:08 time: 0.4930 data_time: 0.0081 memory: 11508 loss: 1.3299 grad_norm: 0.2033 06/02 04:15:11 - mmengine - INFO - Iter(train) [3600/6543] lr: 8.8665e-05 eta: 0:28:01 time: 0.4924 data_time: 0.0077 memory: 11508 loss: 1.3522 grad_norm: 0.2024 06/02 04:15:16 - mmengine - INFO - Iter(train) [3610/6543] lr: 8.8173e-05 eta: 0:27:55 time: 0.4918 data_time: 0.0078 memory: 11508 loss: 1.3051 grad_norm: 0.2024 06/02 04:15:21 - mmengine - INFO - Iter(train) [3620/6543] lr: 8.7682e-05 eta: 0:27:49 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.3062 grad_norm: 0.2007 06/02 04:15:26 - mmengine - INFO - Iter(train) [3630/6543] lr: 8.7191e-05 eta: 0:27:42 time: 0.4919 data_time: 0.0078 memory: 11508 loss: 1.3660 grad_norm: 0.2007 06/02 04:15:31 - mmengine - INFO - Iter(train) [3640/6543] lr: 8.6700e-05 eta: 0:27:36 time: 0.4929 data_time: 0.0081 memory: 11508 loss: 1.2818 grad_norm: 0.1971 06/02 04:15:36 - mmengine - INFO - Iter(train) [3650/6543] lr: 8.6210e-05 eta: 0:27:30 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.3328 grad_norm: 0.1896 06/02 04:15:41 - mmengine - INFO - Iter(train) [3660/6543] lr: 8.5720e-05 eta: 0:27:23 time: 0.4922 data_time: 0.0080 memory: 11508 loss: 1.3682 grad_norm: 0.1896 06/02 04:15:46 - mmengine - INFO - Iter(train) [3670/6543] lr: 8.5230e-05 eta: 0:27:17 time: 0.4924 data_time: 0.0077 memory: 11508 loss: 1.3279 grad_norm: 0.1892 06/02 04:15:51 - mmengine - INFO - Iter(train) [3680/6543] lr: 8.4740e-05 eta: 0:27:11 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3627 grad_norm: 0.1790 06/02 04:15:56 - mmengine - INFO - Iter(train) [3690/6543] lr: 8.4251e-05 eta: 0:27:04 time: 0.4917 data_time: 0.0078 memory: 11508 loss: 1.3898 grad_norm: 0.1790 06/02 04:16:00 - mmengine - INFO - Iter(train) [3700/6543] lr: 8.3763e-05 eta: 0:26:58 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3465 grad_norm: 0.1816 06/02 04:16:05 - mmengine - INFO - Iter(train) [3710/6543] lr: 8.3275e-05 eta: 0:26:52 time: 0.4922 data_time: 0.0080 memory: 11508 loss: 1.3957 grad_norm: 0.1816 06/02 04:16:10 - mmengine - INFO - Iter(train) [3720/6543] lr: 8.2787e-05 eta: 0:26:46 time: 0.4929 data_time: 0.0081 memory: 11508 loss: 1.3371 grad_norm: 0.1843 06/02 04:16:15 - mmengine - INFO - Iter(train) [3730/6543] lr: 8.2299e-05 eta: 0:26:39 time: 0.4927 data_time: 0.0078 memory: 11508 loss: 1.4019 grad_norm: 0.1835 06/02 04:16:20 - mmengine - INFO - Iter(train) [3740/6543] lr: 8.1813e-05 eta: 0:26:33 time: 0.4918 data_time: 0.0078 memory: 11508 loss: 1.3889 grad_norm: 0.1835 06/02 04:16:25 - mmengine - INFO - Iter(train) [3750/6543] lr: 8.1326e-05 eta: 0:26:27 time: 0.4928 data_time: 0.0078 memory: 11508 loss: 1.3322 grad_norm: 0.1839 06/02 04:16:30 - mmengine - INFO - Iter(train) [3760/6543] lr: 8.0840e-05 eta: 0:26:21 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.2952 grad_norm: 0.1860 06/02 04:16:35 - mmengine - INFO - Iter(train) [3770/6543] lr: 8.0354e-05 eta: 0:26:14 time: 0.4917 data_time: 0.0077 memory: 11508 loss: 1.3156 grad_norm: 0.1860 06/02 04:16:40 - mmengine - INFO - Iter(train) [3780/6543] lr: 7.9869e-05 eta: 0:26:08 time: 0.4930 data_time: 0.0081 memory: 11508 loss: 1.3045 grad_norm: 0.1940 06/02 04:16:45 - mmengine - INFO - Iter(train) [3790/6543] lr: 7.9385e-05 eta: 0:26:02 time: 0.4921 data_time: 0.0080 memory: 11508 loss: 1.3768 grad_norm: 0.1940 06/02 04:16:50 - mmengine - INFO - Iter(train) [3800/6543] lr: 7.8901e-05 eta: 0:25:56 time: 0.4931 data_time: 0.0081 memory: 11508 loss: 1.3718 grad_norm: 0.1934 06/02 04:16:55 - mmengine - INFO - Iter(train) [3810/6543] lr: 7.8417e-05 eta: 0:25:49 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.3257 grad_norm: 0.1953 06/02 04:17:00 - mmengine - INFO - Iter(train) [3820/6543] lr: 7.7934e-05 eta: 0:25:43 time: 0.4920 data_time: 0.0080 memory: 11508 loss: 1.3644 grad_norm: 0.1953 06/02 04:17:04 - mmengine - INFO - Iter(train) [3830/6543] lr: 7.7452e-05 eta: 0:25:37 time: 0.4929 data_time: 0.0081 memory: 11508 loss: 1.3267 grad_norm: 0.1967 06/02 04:17:09 - mmengine - INFO - Iter(train) [3840/6543] lr: 7.6970e-05 eta: 0:25:31 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.2928 grad_norm: 0.1980 06/02 04:17:14 - mmengine - INFO - Iter(train) [3850/6543] lr: 7.6488e-05 eta: 0:25:25 time: 0.4924 data_time: 0.0081 memory: 11508 loss: 1.2427 grad_norm: 0.1980 06/02 04:17:19 - mmengine - INFO - Iter(train) [3860/6543] lr: 7.6007e-05 eta: 0:25:18 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.4096 grad_norm: 0.2007 06/02 04:17:24 - mmengine - INFO - Iter(train) [3870/6543] lr: 7.5527e-05 eta: 0:25:12 time: 0.4918 data_time: 0.0078 memory: 11508 loss: 1.3092 grad_norm: 0.2007 06/02 04:17:29 - mmengine - INFO - Iter(train) [3880/6543] lr: 7.5048e-05 eta: 0:25:06 time: 0.4928 data_time: 0.0079 memory: 11508 loss: 1.2492 grad_norm: 0.2042 06/02 04:17:34 - mmengine - INFO - Iter(train) [3890/6543] lr: 7.4569e-05 eta: 0:25:00 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.3927 grad_norm: 0.2033 06/02 04:17:39 - mmengine - INFO - Iter(train) [3900/6543] lr: 7.4090e-05 eta: 0:24:54 time: 0.4927 data_time: 0.0083 memory: 11508 loss: 1.3390 grad_norm: 0.2033 06/02 04:17:44 - mmengine - INFO - Iter(train) [3910/6543] lr: 7.3612e-05 eta: 0:24:48 time: 0.4928 data_time: 0.0079 memory: 11508 loss: 1.3278 grad_norm: 0.2080 06/02 04:17:49 - mmengine - INFO - Iter(train) [3920/6543] lr: 7.3135e-05 eta: 0:24:42 time: 0.4930 data_time: 0.0081 memory: 11508 loss: 1.3557 grad_norm: 0.2034 06/02 04:17:54 - mmengine - INFO - Iter(train) [3930/6543] lr: 7.2659e-05 eta: 0:24:35 time: 0.4916 data_time: 0.0078 memory: 11508 loss: 1.3445 grad_norm: 0.2034 06/02 04:17:59 - mmengine - INFO - Iter(train) [3940/6543] lr: 7.2183e-05 eta: 0:24:29 time: 0.4923 data_time: 0.0078 memory: 11508 loss: 1.2667 grad_norm: 0.1973 06/02 04:18:04 - mmengine - INFO - Iter(train) [3950/6543] lr: 7.1708e-05 eta: 0:24:23 time: 0.4920 data_time: 0.0080 memory: 11508 loss: 1.4089 grad_norm: 0.1973 06/02 04:18:09 - mmengine - INFO - Iter(train) [3960/6543] lr: 7.1234e-05 eta: 0:24:17 time: 0.4933 data_time: 0.0087 memory: 11508 loss: 1.3374 grad_norm: 0.1972 06/02 04:18:13 - mmengine - INFO - Iter(train) [3970/6543] lr: 7.0760e-05 eta: 0:24:11 time: 0.4928 data_time: 0.0079 memory: 11508 loss: 1.2959 grad_norm: 0.1942 06/02 04:18:18 - mmengine - INFO - Iter(train) [3980/6543] lr: 7.0287e-05 eta: 0:24:05 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.2804 grad_norm: 0.1942 06/02 04:18:23 - mmengine - INFO - Iter(train) [3990/6543] lr: 6.9815e-05 eta: 0:23:59 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.2604 grad_norm: 0.1981 06/02 04:18:28 - mmengine - INFO - Exp name: gemma_2b_it_qlora_alpaca_e3_20240602_034031 06/02 04:18:28 - mmengine - INFO - Iter(train) [4000/6543] lr: 6.9343e-05 eta: 0:23:53 time: 0.4928 data_time: 0.0079 memory: 11508 loss: 1.3944 grad_norm: 0.1972 06/02 04:18:28 - mmengine - INFO - after_train_iter in EvaluateChatHook. 06/02 04:19:12 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user 请给我介绍五个上海的景点<end_of_turn> <start_of_turn>model 1. 上海故宫 2. 上海博物馆 3. 上海虹桥 4. 上海天坛 5. 上海中山公园 6. 上海南山公园 7. 上海人民公园 8. 上海市博物馆 9. 上海科学技术馆 10. 上海海洋博物馆 11. 上海博物馆 12. 上海自然博物馆 13. 上海自然科学博物馆 14. 上海自然史博物馆 15. 上海自然史博物馆 16. 上海自然史博物馆 17. 上海自然史博物馆 18. 上海自然史博物馆 19. 上海自然史博物馆 20. 上海自然史博物馆 21. 上海自然史博物馆 22. 上海自然史博物馆 23. 上海自然史博物馆 24. 上海自然史博物馆 25. 上海自然史博物馆 26. 上海自然史博物馆 27. 上海自然史博物馆 28. 上海自然史博物馆 29. 上海自然史博物馆 30. 上海自然史博物馆 31. 上海自然史博物馆 32. 上海自然史博物馆 33. 上海自然史博物馆 34. 上海自然史博物馆 35. 上海自然史博物馆 36. 上海自然史博物馆 37. 上海自然史博物馆 38. 上海自然史博物馆 39. 上海自然史博物馆 40. 上海自然史博物馆 41. 上海自然史博物馆 42. 上海自然史博物馆 43. 上海自然史博物馆 44. 上海自然史博物馆 45. 上海自然史博物馆 46. 上海自然史博物馆 47. 上海自然史博物馆 48. 上海自然史博物馆 49. 上海自然史博物馆 50. 上海自然史博物馆 51. 上海自然史博物馆 52. 上海自然史博物馆 53. 上海自然史博物馆 54. 上海自然史博物馆 55. 上海自然史博物馆 56. 上海自然史博物馆 57. 上海自然史博物馆 58. 上海自然史博物馆 59. 上海自然史博物馆 60. 上海自然史博物馆 61. 上海自然史博物馆 62. 上海自然史博物馆 63. 上海自然史博物馆 64. 上海自然史博物馆 65. 上海自然史博物馆 66. 上海自然史博物馆 67. 上海自然史博物馆 68. 上海自然史博物馆 69. 上海自然史博物馆 70. 上海自然史博物馆 71. 上海自然史博物馆 72. 上海自然史博物馆 73. 上海自然史博物馆 74. 上海自然史博物馆 75. 上海自然史博物馆 76. 上海自然史博物馆 77. 上海自然史博物馆 78. 06/02 04:19:15 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user Please tell me five scenic spots in Shanghai<end_of_turn> <start_of_turn>model 1. The Bund 2. The Oriental Pearl Tower 3. The Shanghai Tower 4. The Yu Garden 5. The Shanghai Disneyland Resort<end_of_turn> 06/02 04:19:15 - mmengine - INFO - Saving checkpoint at 4000 iterations 06/02 04:19:22 - mmengine - INFO - Iter(train) [4010/6543] lr: 6.8872e-05 eta: 0:24:17 time: 5.3684 data_time: 4.8812 memory: 11508 loss: 1.2633 grad_norm: 0.1972 06/02 04:19:27 - mmengine - INFO - Iter(train) [4020/6543] lr: 6.8402e-05 eta: 0:24:11 time: 0.4924 data_time: 0.0079 memory: 11508 loss: 1.3614 grad_norm: 0.1941 06/02 04:19:32 - mmengine - INFO - Iter(train) [4030/6543] lr: 6.7933e-05 eta: 0:24:05 time: 0.4914 data_time: 0.0078 memory: 11508 loss: 1.3148 grad_norm: 0.1941 06/02 04:19:37 - mmengine - INFO - Iter(train) [4040/6543] lr: 6.7465e-05 eta: 0:23:59 time: 0.4928 data_time: 0.0079 memory: 11508 loss: 1.3330 grad_norm: 0.1848 06/02 04:19:42 - mmengine - INFO - Iter(train) [4050/6543] lr: 6.6997e-05 eta: 0:23:52 time: 0.4923 data_time: 0.0078 memory: 11508 loss: 1.3846 grad_norm: 0.1877 06/02 04:19:47 - mmengine - INFO - Iter(train) [4060/6543] lr: 6.6530e-05 eta: 0:23:46 time: 0.4923 data_time: 0.0082 memory: 11508 loss: 1.3454 grad_norm: 0.1877 06/02 04:19:51 - mmengine - INFO - Iter(train) [4070/6543] lr: 6.6064e-05 eta: 0:23:40 time: 0.4928 data_time: 0.0082 memory: 11508 loss: 1.3298 grad_norm: 0.1823 06/02 04:19:56 - mmengine - INFO - Iter(train) [4080/6543] lr: 6.5599e-05 eta: 0:23:34 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3565 grad_norm: 0.1828 06/02 04:20:01 - mmengine - INFO - Iter(train) [4090/6543] lr: 6.5135e-05 eta: 0:23:27 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.4059 grad_norm: 0.1828 06/02 04:20:06 - mmengine - INFO - Iter(train) [4100/6543] lr: 6.4671e-05 eta: 0:23:21 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.3678 grad_norm: 0.1844 06/02 04:20:11 - mmengine - INFO - Iter(train) [4110/6543] lr: 6.4209e-05 eta: 0:23:15 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.2938 grad_norm: 0.1844 06/02 04:20:16 - mmengine - INFO - Iter(train) [4120/6543] lr: 6.3747e-05 eta: 0:23:09 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3525 grad_norm: 0.1857 06/02 04:20:21 - mmengine - INFO - Iter(train) [4130/6543] lr: 6.3286e-05 eta: 0:23:02 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.3153 grad_norm: 0.1868 06/02 04:20:26 - mmengine - INFO - Iter(train) [4140/6543] lr: 6.2826e-05 eta: 0:22:56 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.2880 grad_norm: 0.1868 06/02 04:20:31 - mmengine - INFO - Iter(train) [4150/6543] lr: 6.2367e-05 eta: 0:22:50 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.2844 grad_norm: 0.1764 06/02 04:20:36 - mmengine - INFO - Iter(train) [4160/6543] lr: 6.1909e-05 eta: 0:22:44 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.2910 grad_norm: 0.1773 06/02 04:20:41 - mmengine - INFO - Iter(train) [4170/6543] lr: 6.1452e-05 eta: 0:22:38 time: 0.4918 data_time: 0.0079 memory: 11508 loss: 1.3720 grad_norm: 0.1773 06/02 04:20:46 - mmengine - INFO - Iter(train) [4180/6543] lr: 6.0995e-05 eta: 0:22:32 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.3372 grad_norm: 0.1801 06/02 04:20:51 - mmengine - INFO - Iter(train) [4190/6543] lr: 6.0540e-05 eta: 0:22:25 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.3097 grad_norm: 0.1801 06/02 04:20:55 - mmengine - INFO - Iter(train) [4200/6543] lr: 6.0086e-05 eta: 0:22:19 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.3660 grad_norm: 0.1808 06/02 04:21:00 - mmengine - INFO - Iter(train) [4210/6543] lr: 5.9633e-05 eta: 0:22:13 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.3137 grad_norm: 0.1807 06/02 04:21:05 - mmengine - INFO - Iter(train) [4220/6543] lr: 5.9180e-05 eta: 0:22:07 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.3304 grad_norm: 0.1807 06/02 04:21:10 - mmengine - INFO - Iter(train) [4230/6543] lr: 5.8729e-05 eta: 0:22:01 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.3802 grad_norm: 0.1855 06/02 04:21:15 - mmengine - INFO - Iter(train) [4240/6543] lr: 5.8278e-05 eta: 0:21:55 time: 0.4926 data_time: 0.0078 memory: 11508 loss: 1.3422 grad_norm: 0.1872 06/02 04:21:20 - mmengine - INFO - Iter(train) [4250/6543] lr: 5.7829e-05 eta: 0:21:48 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.2903 grad_norm: 0.1872 06/02 04:21:25 - mmengine - INFO - Iter(train) [4260/6543] lr: 5.7381e-05 eta: 0:21:42 time: 0.4928 data_time: 0.0079 memory: 11508 loss: 1.3825 grad_norm: 0.1840 06/02 04:21:30 - mmengine - INFO - Iter(train) [4270/6543] lr: 5.6934e-05 eta: 0:21:36 time: 0.4918 data_time: 0.0079 memory: 11508 loss: 1.2650 grad_norm: 0.1840 06/02 04:21:35 - mmengine - INFO - Iter(train) [4280/6543] lr: 5.6487e-05 eta: 0:21:30 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.3051 grad_norm: 0.1847 06/02 04:21:40 - mmengine - INFO - Iter(train) [4290/6543] lr: 5.6042e-05 eta: 0:21:24 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.3361 grad_norm: 0.1862 06/02 04:21:45 - mmengine - INFO - Iter(train) [4300/6543] lr: 5.5598e-05 eta: 0:21:18 time: 0.4923 data_time: 0.0081 memory: 11508 loss: 1.3295 grad_norm: 0.1862 06/02 04:21:50 - mmengine - INFO - Iter(train) [4310/6543] lr: 5.5155e-05 eta: 0:21:12 time: 0.4923 data_time: 0.0077 memory: 11508 loss: 1.3753 grad_norm: 0.1870 06/02 04:21:55 - mmengine - INFO - Iter(train) [4320/6543] lr: 5.4713e-05 eta: 0:21:06 time: 0.4928 data_time: 0.0079 memory: 11508 loss: 1.3590 grad_norm: 0.1883 06/02 04:21:59 - mmengine - INFO - Iter(train) [4330/6543] lr: 5.4273e-05 eta: 0:21:00 time: 0.4918 data_time: 0.0079 memory: 11508 loss: 1.3384 grad_norm: 0.1883 06/02 04:22:04 - mmengine - INFO - Iter(train) [4340/6543] lr: 5.3833e-05 eta: 0:20:54 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.3853 grad_norm: 0.1850 06/02 04:22:09 - mmengine - INFO - Iter(train) [4350/6543] lr: 5.3395e-05 eta: 0:20:47 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.3539 grad_norm: 0.1850 06/02 04:22:14 - mmengine - INFO - Iter(train) [4360/6543] lr: 5.2957e-05 eta: 0:20:41 time: 0.4929 data_time: 0.0082 memory: 11508 loss: 1.3985 grad_norm: 0.1843 06/02 04:22:21 - mmengine - INFO - Iter(train) [4370/6543] lr: 5.2521e-05 eta: 0:20:36 time: 0.6959 data_time: 0.2083 memory: 11508 loss: 1.2866 grad_norm: 0.1837 06/02 04:22:26 - mmengine - INFO - Iter(train) [4380/6543] lr: 5.2086e-05 eta: 0:20:30 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.3657 grad_norm: 0.1837 06/02 04:22:31 - mmengine - INFO - Iter(train) [4390/6543] lr: 5.1652e-05 eta: 0:20:24 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.3532 grad_norm: 0.1796 06/02 04:22:36 - mmengine - INFO - Iter(train) [4400/6543] lr: 5.1219e-05 eta: 0:20:18 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3268 grad_norm: 0.1822 06/02 04:22:41 - mmengine - INFO - Iter(train) [4410/6543] lr: 5.0788e-05 eta: 0:20:12 time: 0.4921 data_time: 0.0080 memory: 11508 loss: 1.3081 grad_norm: 0.1822 06/02 04:22:46 - mmengine - INFO - Iter(train) [4420/6543] lr: 5.0358e-05 eta: 0:20:06 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.2777 grad_norm: 0.1858 06/02 04:22:51 - mmengine - INFO - Iter(train) [4430/6543] lr: 4.9929e-05 eta: 0:20:00 time: 0.4924 data_time: 0.0081 memory: 11508 loss: 1.2807 grad_norm: 0.1858 06/02 04:22:56 - mmengine - INFO - Iter(train) [4440/6543] lr: 4.9501e-05 eta: 0:19:54 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.2679 grad_norm: 0.1850 06/02 04:23:01 - mmengine - INFO - Iter(train) [4450/6543] lr: 4.9074e-05 eta: 0:19:48 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.2823 grad_norm: 0.1837 06/02 04:23:06 - mmengine - INFO - Iter(train) [4460/6543] lr: 4.8649e-05 eta: 0:19:42 time: 0.4923 data_time: 0.0081 memory: 11508 loss: 1.2355 grad_norm: 0.1837 06/02 04:23:10 - mmengine - INFO - Iter(train) [4470/6543] lr: 4.8225e-05 eta: 0:19:36 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.2000 grad_norm: 0.1858 06/02 04:23:15 - mmengine - INFO - Iter(train) [4480/6543] lr: 4.7802e-05 eta: 0:19:30 time: 0.4927 data_time: 0.0078 memory: 11508 loss: 1.2578 grad_norm: 0.1904 06/02 04:23:20 - mmengine - INFO - Iter(train) [4490/6543] lr: 4.7380e-05 eta: 0:19:24 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.2638 grad_norm: 0.1904 06/02 04:23:25 - mmengine - INFO - Iter(train) [4500/6543] lr: 4.6960e-05 eta: 0:19:18 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.3147 grad_norm: 0.1917 06/02 04:23:25 - mmengine - INFO - after_train_iter in EvaluateChatHook. 06/02 04:23:27 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user 请给我介绍五个上海的景点<end_of_turn> <start_of_turn>model 1. 上海故宫 2. 上海博物馆 3. 上海虹桥 4. 上海天坛 5. 上海南山公园<end_of_turn> 06/02 04:23:30 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user Please tell me five scenic spots in Shanghai<end_of_turn> <start_of_turn>model 1. The Bund 2. The Oriental Pearl Tower 3. The Shanghai Tower 4. The Yu Garden 5. The Shanghai Disneyland Resort<end_of_turn> 06/02 04:23:30 - mmengine - INFO - Saving checkpoint at 4500 iterations 06/02 04:23:37 - mmengine - INFO - Iter(train) [4510/6543] lr: 4.6541e-05 eta: 0:19:15 time: 1.1799 data_time: 0.6936 memory: 11508 loss: 1.2751 grad_norm: 0.1917 06/02 04:23:42 - mmengine - INFO - Iter(train) [4520/6543] lr: 4.6123e-05 eta: 0:19:09 time: 0.4928 data_time: 0.0081 memory: 11508 loss: 1.3228 grad_norm: 0.1967 06/02 04:23:47 - mmengine - INFO - Iter(train) [4530/6543] lr: 4.5707e-05 eta: 0:19:03 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3832 grad_norm: 0.2029 06/02 04:23:52 - mmengine - INFO - Iter(train) [4540/6543] lr: 4.5292e-05 eta: 0:18:57 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.3289 grad_norm: 0.2029 06/02 04:23:57 - mmengine - INFO - Iter(train) [4550/6543] lr: 4.4878e-05 eta: 0:18:51 time: 0.4930 data_time: 0.0082 memory: 11508 loss: 1.3080 grad_norm: 0.2113 06/02 04:24:02 - mmengine - INFO - Iter(train) [4560/6543] lr: 4.4466e-05 eta: 0:18:45 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.2847 grad_norm: 0.2077 06/02 04:24:07 - mmengine - INFO - Iter(train) [4570/6543] lr: 4.4055e-05 eta: 0:18:39 time: 0.4924 data_time: 0.0080 memory: 11508 loss: 1.3286 grad_norm: 0.2077 06/02 04:24:12 - mmengine - INFO - Iter(train) [4580/6543] lr: 4.3646e-05 eta: 0:18:33 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.3225 grad_norm: 0.2068 06/02 04:24:16 - mmengine - INFO - Iter(train) [4590/6543] lr: 4.3237e-05 eta: 0:18:27 time: 0.4920 data_time: 0.0080 memory: 11508 loss: 1.2806 grad_norm: 0.2068 06/02 04:24:21 - mmengine - INFO - Iter(train) [4600/6543] lr: 4.2831e-05 eta: 0:18:21 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.2363 grad_norm: 0.2105 06/02 04:24:26 - mmengine - INFO - Iter(train) [4610/6543] lr: 4.2425e-05 eta: 0:18:15 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.2796 grad_norm: 0.2099 06/02 04:24:31 - mmengine - INFO - Iter(train) [4620/6543] lr: 4.2021e-05 eta: 0:18:09 time: 0.4919 data_time: 0.0080 memory: 11508 loss: 1.2691 grad_norm: 0.2099 06/02 04:24:36 - mmengine - INFO - Iter(train) [4630/6543] lr: 4.1619e-05 eta: 0:18:03 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.3161 grad_norm: 0.2079 06/02 04:24:41 - mmengine - INFO - Iter(train) [4640/6543] lr: 4.1217e-05 eta: 0:17:57 time: 0.4931 data_time: 0.0081 memory: 11508 loss: 1.2741 grad_norm: 0.2004 06/02 04:24:46 - mmengine - INFO - Iter(train) [4650/6543] lr: 4.0818e-05 eta: 0:17:51 time: 0.4918 data_time: 0.0079 memory: 11508 loss: 1.2024 grad_norm: 0.2004 06/02 04:24:51 - mmengine - INFO - Iter(train) [4660/6543] lr: 4.0420e-05 eta: 0:17:45 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.3363 grad_norm: 0.1994 06/02 04:24:56 - mmengine - INFO - Iter(train) [4670/6543] lr: 4.0023e-05 eta: 0:17:39 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.2878 grad_norm: 0.1994 06/02 04:25:01 - mmengine - INFO - Iter(train) [4680/6543] lr: 3.9627e-05 eta: 0:17:33 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.2727 grad_norm: 0.1965 06/02 04:25:06 - mmengine - INFO - Iter(train) [4690/6543] lr: 3.9234e-05 eta: 0:17:27 time: 0.4930 data_time: 0.0080 memory: 11508 loss: 1.2573 grad_norm: 0.1891 06/02 04:25:11 - mmengine - INFO - Iter(train) [4700/6543] lr: 3.8841e-05 eta: 0:17:21 time: 0.4920 data_time: 0.0080 memory: 11508 loss: 1.3011 grad_norm: 0.1891 06/02 04:25:16 - mmengine - INFO - Iter(train) [4710/6543] lr: 3.8450e-05 eta: 0:17:15 time: 0.4929 data_time: 0.0080 memory: 11508 loss: 1.3077 grad_norm: 0.1805 06/02 04:25:20 - mmengine - INFO - Iter(train) [4720/6543] lr: 3.8061e-05 eta: 0:17:09 time: 0.4926 data_time: 0.0078 memory: 11508 loss: 1.3817 grad_norm: 0.1814 06/02 04:25:25 - mmengine - INFO - Iter(train) [4730/6543] lr: 3.7673e-05 eta: 0:17:03 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.2609 grad_norm: 0.1814 06/02 04:25:30 - mmengine - INFO - Iter(train) [4740/6543] lr: 3.7287e-05 eta: 0:16:58 time: 0.4931 data_time: 0.0079 memory: 11508 loss: 1.3199 grad_norm: 0.1794 06/02 04:25:35 - mmengine - INFO - Iter(train) [4750/6543] lr: 3.6902e-05 eta: 0:16:52 time: 0.4916 data_time: 0.0077 memory: 11508 loss: 1.2501 grad_norm: 0.1794 06/02 04:25:40 - mmengine - INFO - Iter(train) [4760/6543] lr: 3.6519e-05 eta: 0:16:46 time: 0.4929 data_time: 0.0081 memory: 11508 loss: 1.3090 grad_norm: 0.1765 06/02 04:25:45 - mmengine - INFO - Iter(train) [4770/6543] lr: 3.6137e-05 eta: 0:16:40 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.2041 grad_norm: 0.1771 06/02 04:25:50 - mmengine - INFO - Iter(train) [4780/6543] lr: 3.5757e-05 eta: 0:16:34 time: 0.4920 data_time: 0.0080 memory: 11508 loss: 1.2784 grad_norm: 0.1771 06/02 04:25:55 - mmengine - INFO - Iter(train) [4790/6543] lr: 3.5379e-05 eta: 0:16:28 time: 0.4931 data_time: 0.0079 memory: 11508 loss: 1.2821 grad_norm: 0.1787 06/02 04:26:00 - mmengine - INFO - Iter(train) [4800/6543] lr: 3.5002e-05 eta: 0:16:22 time: 0.4929 data_time: 0.0080 memory: 11508 loss: 1.3129 grad_norm: 0.1790 06/02 04:26:05 - mmengine - INFO - Iter(train) [4810/6543] lr: 3.4626e-05 eta: 0:16:16 time: 0.4926 data_time: 0.0080 memory: 11508 loss: 1.2950 grad_norm: 0.1790 06/02 04:26:10 - mmengine - INFO - Iter(train) [4820/6543] lr: 3.4252e-05 eta: 0:16:10 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.2194 grad_norm: 0.1785 06/02 04:26:15 - mmengine - INFO - Iter(train) [4830/6543] lr: 3.3880e-05 eta: 0:16:04 time: 0.4920 data_time: 0.0080 memory: 11508 loss: 1.2695 grad_norm: 0.1785 06/02 04:26:20 - mmengine - INFO - Iter(train) [4840/6543] lr: 3.3510e-05 eta: 0:15:59 time: 0.4926 data_time: 0.0078 memory: 11508 loss: 1.2171 grad_norm: 0.1783 06/02 04:26:24 - mmengine - INFO - Iter(train) [4850/6543] lr: 3.3141e-05 eta: 0:15:53 time: 0.4929 data_time: 0.0081 memory: 11508 loss: 1.2968 grad_norm: 0.1778 06/02 04:26:29 - mmengine - INFO - Iter(train) [4860/6543] lr: 3.2774e-05 eta: 0:15:47 time: 0.4921 data_time: 0.0080 memory: 11508 loss: 1.2987 grad_norm: 0.1778 06/02 04:26:34 - mmengine - INFO - Iter(train) [4870/6543] lr: 3.2408e-05 eta: 0:15:41 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.2878 grad_norm: 0.1789 06/02 04:26:39 - mmengine - INFO - Iter(train) [4880/6543] lr: 3.2044e-05 eta: 0:15:35 time: 0.4930 data_time: 0.0081 memory: 11508 loss: 1.2576 grad_norm: 0.1784 06/02 04:26:44 - mmengine - INFO - Iter(train) [4890/6543] lr: 3.1682e-05 eta: 0:15:29 time: 0.4917 data_time: 0.0078 memory: 11508 loss: 1.2827 grad_norm: 0.1784 06/02 04:26:49 - mmengine - INFO - Iter(train) [4900/6543] lr: 3.1321e-05 eta: 0:15:23 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.2712 grad_norm: 0.1782 06/02 04:26:54 - mmengine - INFO - Iter(train) [4910/6543] lr: 3.0962e-05 eta: 0:15:17 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.2834 grad_norm: 0.1782 06/02 04:26:59 - mmengine - INFO - Iter(train) [4920/6543] lr: 3.0605e-05 eta: 0:15:12 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.2748 grad_norm: 0.1784 06/02 04:27:04 - mmengine - INFO - Iter(train) [4930/6543] lr: 3.0249e-05 eta: 0:15:06 time: 0.4931 data_time: 0.0082 memory: 11508 loss: 1.2657 grad_norm: 0.1786 06/02 04:27:09 - mmengine - INFO - Iter(train) [4940/6543] lr: 2.9896e-05 eta: 0:15:00 time: 0.4924 data_time: 0.0081 memory: 11508 loss: 1.2935 grad_norm: 0.1786 06/02 04:27:14 - mmengine - INFO - Iter(train) [4950/6543] lr: 2.9544e-05 eta: 0:14:54 time: 0.4932 data_time: 0.0080 memory: 11508 loss: 1.3063 grad_norm: 0.1796 06/02 04:27:19 - mmengine - INFO - Iter(train) [4960/6543] lr: 2.9193e-05 eta: 0:14:48 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.2726 grad_norm: 0.1808 06/02 04:27:24 - mmengine - INFO - Iter(train) [4970/6543] lr: 2.8844e-05 eta: 0:14:42 time: 0.4918 data_time: 0.0079 memory: 11508 loss: 1.2563 grad_norm: 0.1808 06/02 04:27:29 - mmengine - INFO - Iter(train) [4980/6543] lr: 2.8498e-05 eta: 0:14:37 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.2501 grad_norm: 0.1811 06/02 04:27:33 - mmengine - INFO - Iter(train) [4990/6543] lr: 2.8152e-05 eta: 0:14:31 time: 0.4916 data_time: 0.0078 memory: 11508 loss: 1.2860 grad_norm: 0.1811 06/02 04:27:38 - mmengine - INFO - Exp name: gemma_2b_it_qlora_alpaca_e3_20240602_034031 06/02 04:27:38 - mmengine - INFO - Iter(train) [5000/6543] lr: 2.7809e-05 eta: 0:14:25 time: 0.4932 data_time: 0.0083 memory: 11508 loss: 1.2373 grad_norm: 0.1801 06/02 04:27:38 - mmengine - INFO - after_train_iter in EvaluateChatHook. 06/02 04:27:41 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user 请给我介绍五个上海的景点<end_of_turn> <start_of_turn>model 1. 上海故宫 2. 上海博物馆 3. 上海虹桥 4. 上海天坛 5. 上海中山公园<end_of_turn> 06/02 04:27:43 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user Please tell me five scenic spots in Shanghai<end_of_turn> <start_of_turn>model 1. The Bund 2. Oriental Pearl Tower 3. Yu Garden 4. The Shanghai Tower 5. The Bund Waterfront Park<end_of_turn> 06/02 04:27:43 - mmengine - INFO - Saving checkpoint at 5000 iterations 06/02 04:27:50 - mmengine - INFO - Iter(train) [5010/6543] lr: 2.7467e-05 eta: 0:14:21 time: 1.1532 data_time: 0.6667 memory: 11508 loss: 1.3226 grad_norm: 0.1819 06/02 04:27:55 - mmengine - INFO - Iter(train) [5020/6543] lr: 2.7128e-05 eta: 0:14:15 time: 0.4919 data_time: 0.0078 memory: 11508 loss: 1.3481 grad_norm: 0.1819 06/02 04:28:00 - mmengine - INFO - Iter(train) [5030/6543] lr: 2.6789e-05 eta: 0:14:09 time: 0.4932 data_time: 0.0083 memory: 11508 loss: 1.2976 grad_norm: 0.1828 06/02 04:28:05 - mmengine - INFO - Iter(train) [5040/6543] lr: 2.6453e-05 eta: 0:14:04 time: 0.4929 data_time: 0.0079 memory: 11508 loss: 1.3016 grad_norm: 0.1836 06/02 04:28:10 - mmengine - INFO - Iter(train) [5050/6543] lr: 2.6119e-05 eta: 0:13:58 time: 0.4918 data_time: 0.0079 memory: 11508 loss: 1.3198 grad_norm: 0.1836 06/02 04:28:15 - mmengine - INFO - Iter(train) [5060/6543] lr: 2.5786e-05 eta: 0:13:52 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.2834 grad_norm: 0.1843 06/02 04:28:19 - mmengine - INFO - Iter(train) [5070/6543] lr: 2.5455e-05 eta: 0:13:46 time: 0.4920 data_time: 0.0080 memory: 11508 loss: 1.2235 grad_norm: 0.1843 06/02 04:28:24 - mmengine - INFO - Iter(train) [5080/6543] lr: 2.5126e-05 eta: 0:13:40 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.3128 grad_norm: 0.1840 06/02 04:28:29 - mmengine - INFO - Iter(train) [5090/6543] lr: 2.4799e-05 eta: 0:13:35 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.2736 grad_norm: 0.1842 06/02 04:28:34 - mmengine - INFO - Iter(train) [5100/6543] lr: 2.4474e-05 eta: 0:13:29 time: 0.4922 data_time: 0.0080 memory: 11508 loss: 1.2962 grad_norm: 0.1842 06/02 04:28:39 - mmengine - INFO - Iter(train) [5110/6543] lr: 2.4150e-05 eta: 0:13:23 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.3027 grad_norm: 0.1823 06/02 04:28:44 - mmengine - INFO - Iter(train) [5120/6543] lr: 2.3829e-05 eta: 0:13:17 time: 0.4928 data_time: 0.0079 memory: 11508 loss: 1.2359 grad_norm: 0.1812 06/02 04:28:49 - mmengine - INFO - Iter(train) [5130/6543] lr: 2.3509e-05 eta: 0:13:11 time: 0.4920 data_time: 0.0080 memory: 11508 loss: 1.2827 grad_norm: 0.1812 06/02 04:28:54 - mmengine - INFO - Iter(train) [5140/6543] lr: 2.3191e-05 eta: 0:13:06 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3277 grad_norm: 0.1806 06/02 04:28:59 - mmengine - INFO - Iter(train) [5150/6543] lr: 2.2875e-05 eta: 0:13:00 time: 0.4923 data_time: 0.0081 memory: 11508 loss: 1.2777 grad_norm: 0.1806 06/02 04:29:04 - mmengine - INFO - Iter(train) [5160/6543] lr: 2.2561e-05 eta: 0:12:54 time: 0.4928 data_time: 0.0079 memory: 11508 loss: 1.2595 grad_norm: 0.1805 06/02 04:29:09 - mmengine - INFO - Iter(train) [5170/6543] lr: 2.2249e-05 eta: 0:12:48 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.2925 grad_norm: 0.1798 06/02 04:29:14 - mmengine - INFO - Iter(train) [5180/6543] lr: 2.1938e-05 eta: 0:12:42 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.2154 grad_norm: 0.1798 06/02 04:29:19 - mmengine - INFO - Iter(train) [5190/6543] lr: 2.1630e-05 eta: 0:12:37 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.3246 grad_norm: 0.1786 06/02 04:29:23 - mmengine - INFO - Iter(train) [5200/6543] lr: 2.1323e-05 eta: 0:12:31 time: 0.4931 data_time: 0.0081 memory: 11508 loss: 1.3474 grad_norm: 0.1795 06/02 04:29:28 - mmengine - INFO - Iter(train) [5210/6543] lr: 2.1019e-05 eta: 0:12:25 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.2209 grad_norm: 0.1795 06/02 04:29:33 - mmengine - INFO - Iter(train) [5220/6543] lr: 2.0716e-05 eta: 0:12:19 time: 0.4932 data_time: 0.0082 memory: 11508 loss: 1.3012 grad_norm: 0.1796 06/02 04:29:38 - mmengine - INFO - Iter(train) [5230/6543] lr: 2.0415e-05 eta: 0:12:14 time: 0.4928 data_time: 0.0087 memory: 11508 loss: 1.2589 grad_norm: 0.1796 06/02 04:29:43 - mmengine - INFO - Iter(train) [5240/6543] lr: 2.0117e-05 eta: 0:12:08 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3004 grad_norm: 0.1797 06/02 04:29:48 - mmengine - INFO - Iter(train) [5250/6543] lr: 1.9820e-05 eta: 0:12:02 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.2495 grad_norm: 0.1793 06/02 04:29:53 - mmengine - INFO - Iter(train) [5260/6543] lr: 1.9525e-05 eta: 0:11:56 time: 0.4920 data_time: 0.0078 memory: 11508 loss: 1.3072 grad_norm: 0.1793 06/02 04:29:58 - mmengine - INFO - Iter(train) [5270/6543] lr: 1.9232e-05 eta: 0:11:51 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.2811 grad_norm: 0.1796 06/02 04:30:03 - mmengine - INFO - Iter(train) [5280/6543] lr: 1.8941e-05 eta: 0:11:45 time: 0.4930 data_time: 0.0080 memory: 11508 loss: 1.3600 grad_norm: 0.1815 06/02 04:30:08 - mmengine - INFO - Iter(train) [5290/6543] lr: 1.8653e-05 eta: 0:11:39 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.3153 grad_norm: 0.1815 06/02 04:30:13 - mmengine - INFO - Iter(train) [5300/6543] lr: 1.8366e-05 eta: 0:11:33 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.2999 grad_norm: 0.1821 06/02 04:30:18 - mmengine - INFO - Iter(train) [5310/6543] lr: 1.8081e-05 eta: 0:11:28 time: 0.4919 data_time: 0.0078 memory: 11508 loss: 1.3108 grad_norm: 0.1821 06/02 04:30:23 - mmengine - INFO - Iter(train) [5320/6543] lr: 1.7798e-05 eta: 0:11:22 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.3042 grad_norm: 0.1832 06/02 04:30:27 - mmengine - INFO - Iter(train) [5330/6543] lr: 1.7517e-05 eta: 0:11:16 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.3105 grad_norm: 0.1829 06/02 04:30:32 - mmengine - INFO - Iter(train) [5340/6543] lr: 1.7238e-05 eta: 0:11:10 time: 0.4922 data_time: 0.0080 memory: 11508 loss: 1.2720 grad_norm: 0.1829 06/02 04:30:37 - mmengine - INFO - Iter(train) [5350/6543] lr: 1.6961e-05 eta: 0:11:05 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.2696 grad_norm: 0.1825 06/02 04:30:42 - mmengine - INFO - Iter(train) [5360/6543] lr: 1.6687e-05 eta: 0:10:59 time: 0.4928 data_time: 0.0079 memory: 11508 loss: 1.3236 grad_norm: 0.1808 06/02 04:30:47 - mmengine - INFO - Iter(train) [5370/6543] lr: 1.6414e-05 eta: 0:10:53 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.2527 grad_norm: 0.1808 06/02 04:30:52 - mmengine - INFO - Iter(train) [5380/6543] lr: 1.6143e-05 eta: 0:10:48 time: 0.4926 data_time: 0.0078 memory: 11508 loss: 1.2848 grad_norm: 0.1806 06/02 04:30:57 - mmengine - INFO - Iter(train) [5390/6543] lr: 1.5875e-05 eta: 0:10:42 time: 0.4923 data_time: 0.0081 memory: 11508 loss: 1.2541 grad_norm: 0.1806 06/02 04:31:02 - mmengine - INFO - Iter(train) [5400/6543] lr: 1.5608e-05 eta: 0:10:36 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.3011 grad_norm: 0.1809 06/02 04:31:07 - mmengine - INFO - Iter(train) [5410/6543] lr: 1.5344e-05 eta: 0:10:30 time: 0.4930 data_time: 0.0081 memory: 11508 loss: 1.3148 grad_norm: 0.1818 06/02 04:31:12 - mmengine - INFO - Iter(train) [5420/6543] lr: 1.5081e-05 eta: 0:10:25 time: 0.4924 data_time: 0.0079 memory: 11508 loss: 1.3389 grad_norm: 0.1818 06/02 04:31:17 - mmengine - INFO - Iter(train) [5430/6543] lr: 1.4821e-05 eta: 0:10:19 time: 0.4924 data_time: 0.0077 memory: 11508 loss: 1.2797 grad_norm: 0.1815 06/02 04:31:22 - mmengine - INFO - Iter(train) [5440/6543] lr: 1.4563e-05 eta: 0:10:13 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.2839 grad_norm: 0.1801 06/02 04:31:27 - mmengine - INFO - Iter(train) [5450/6543] lr: 1.4306e-05 eta: 0:10:08 time: 0.4918 data_time: 0.0079 memory: 11508 loss: 1.2920 grad_norm: 0.1801 06/02 04:31:32 - mmengine - INFO - Iter(train) [5460/6543] lr: 1.4052e-05 eta: 0:10:02 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.2979 grad_norm: 0.1802 06/02 04:31:36 - mmengine - INFO - Iter(train) [5470/6543] lr: 1.3800e-05 eta: 0:09:56 time: 0.4918 data_time: 0.0077 memory: 11508 loss: 1.2692 grad_norm: 0.1802 06/02 04:31:41 - mmengine - INFO - Iter(train) [5480/6543] lr: 1.3550e-05 eta: 0:09:51 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.2926 grad_norm: 0.1795 06/02 04:31:46 - mmengine - INFO - Iter(train) [5490/6543] lr: 1.3303e-05 eta: 0:09:45 time: 0.4930 data_time: 0.0078 memory: 11508 loss: 1.3408 grad_norm: 0.1806 06/02 04:31:51 - mmengine - INFO - Iter(train) [5500/6543] lr: 1.3057e-05 eta: 0:09:39 time: 0.4918 data_time: 0.0078 memory: 11508 loss: 1.3243 grad_norm: 0.1806 06/02 04:31:51 - mmengine - INFO - after_train_iter in EvaluateChatHook. 06/02 04:31:53 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user 请给我介绍五个上海的景点<end_of_turn> <start_of_turn>model 1. 上海故宫 2. 上海博物馆 3. 上海虹桥 4. 上海天坛 5. 上海东方体育场<end_of_turn> 06/02 04:31:57 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user Please tell me five scenic spots in Shanghai<end_of_turn> <start_of_turn>model Five scenic spots in Shanghai are: 1. The Bund 2. The Oriental Pearl Tower 3. The Shanghai Tower 4. The Yu Garden 5. The Qing Shan Temple<end_of_turn> 06/02 04:31:57 - mmengine - INFO - Saving checkpoint at 5500 iterations 06/02 04:32:04 - mmengine - INFO - Iter(train) [5510/6543] lr: 1.2814e-05 eta: 0:09:35 time: 1.3036 data_time: 0.8160 memory: 11508 loss: 1.3019 grad_norm: 0.1810 06/02 04:32:10 - mmengine - INFO - Iter(train) [5520/6543] lr: 1.2572e-05 eta: 0:09:30 time: 0.5752 data_time: 0.0902 memory: 11508 loss: 1.2757 grad_norm: 0.1813 06/02 04:32:15 - mmengine - INFO - Iter(train) [5530/6543] lr: 1.2333e-05 eta: 0:09:24 time: 0.4921 data_time: 0.0079 memory: 11508 loss: 1.2503 grad_norm: 0.1813 06/02 04:32:20 - mmengine - INFO - Iter(train) [5540/6543] lr: 1.2096e-05 eta: 0:09:18 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.2386 grad_norm: 0.1813 06/02 04:32:25 - mmengine - INFO - Iter(train) [5550/6543] lr: 1.1861e-05 eta: 0:09:13 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.3399 grad_norm: 0.1813 06/02 04:32:30 - mmengine - INFO - Iter(train) [5560/6543] lr: 1.1628e-05 eta: 0:09:07 time: 0.4930 data_time: 0.0081 memory: 11508 loss: 1.3583 grad_norm: 0.1816 06/02 04:32:35 - mmengine - INFO - Iter(train) [5570/6543] lr: 1.1398e-05 eta: 0:09:01 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.2887 grad_norm: 0.1824 06/02 04:32:40 - mmengine - INFO - Iter(train) [5580/6543] lr: 1.1169e-05 eta: 0:08:55 time: 0.4918 data_time: 0.0078 memory: 11508 loss: 1.3322 grad_norm: 0.1824 06/02 04:32:44 - mmengine - INFO - Iter(train) [5590/6543] lr: 1.0943e-05 eta: 0:08:50 time: 0.4926 data_time: 0.0080 memory: 11508 loss: 1.2891 grad_norm: 0.1839 06/02 04:32:49 - mmengine - INFO - Iter(train) [5600/6543] lr: 1.0719e-05 eta: 0:08:44 time: 0.4927 data_time: 0.0078 memory: 11508 loss: 1.2914 grad_norm: 0.1850 06/02 04:32:54 - mmengine - INFO - Iter(train) [5610/6543] lr: 1.0497e-05 eta: 0:08:38 time: 0.4922 data_time: 0.0080 memory: 11508 loss: 1.3228 grad_norm: 0.1850 06/02 04:32:59 - mmengine - INFO - Iter(train) [5620/6543] lr: 1.0278e-05 eta: 0:08:33 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.3421 grad_norm: 0.1865 06/02 04:33:04 - mmengine - INFO - Iter(train) [5630/6543] lr: 1.0060e-05 eta: 0:08:27 time: 0.4922 data_time: 0.0080 memory: 11508 loss: 1.2123 grad_norm: 0.1865 06/02 04:33:09 - mmengine - INFO - Iter(train) [5640/6543] lr: 9.8449e-06 eta: 0:08:21 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.2956 grad_norm: 0.1868 06/02 04:33:14 - mmengine - INFO - Iter(train) [5650/6543] lr: 9.6318e-06 eta: 0:08:16 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.3147 grad_norm: 0.1870 06/02 04:33:19 - mmengine - INFO - Iter(train) [5660/6543] lr: 9.4210e-06 eta: 0:08:10 time: 0.4922 data_time: 0.0080 memory: 11508 loss: 1.2696 grad_norm: 0.1870 06/02 04:33:24 - mmengine - INFO - Iter(train) [5670/6543] lr: 9.2124e-06 eta: 0:08:04 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.3162 grad_norm: 0.1880 06/02 04:33:29 - mmengine - INFO - Iter(train) [5680/6543] lr: 9.0060e-06 eta: 0:07:59 time: 0.4931 data_time: 0.0081 memory: 11508 loss: 1.3064 grad_norm: 0.1880 06/02 04:33:34 - mmengine - INFO - Iter(train) [5690/6543] lr: 8.8018e-06 eta: 0:07:53 time: 0.4916 data_time: 0.0078 memory: 11508 loss: 1.3546 grad_norm: 0.1880 06/02 04:33:39 - mmengine - INFO - Iter(train) [5700/6543] lr: 8.5999e-06 eta: 0:07:48 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.2898 grad_norm: 0.1886 06/02 04:33:44 - mmengine - INFO - Iter(train) [5710/6543] lr: 8.4002e-06 eta: 0:07:42 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.3272 grad_norm: 0.1886 06/02 04:33:48 - mmengine - INFO - Iter(train) [5720/6543] lr: 8.2027e-06 eta: 0:07:36 time: 0.4924 data_time: 0.0078 memory: 11508 loss: 1.2527 grad_norm: 0.1890 06/02 04:33:53 - mmengine - INFO - Iter(train) [5730/6543] lr: 8.0075e-06 eta: 0:07:31 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.3297 grad_norm: 0.1880 06/02 04:33:58 - mmengine - INFO - Iter(train) [5740/6543] lr: 7.8146e-06 eta: 0:07:25 time: 0.4919 data_time: 0.0078 memory: 11508 loss: 1.2947 grad_norm: 0.1880 06/02 04:34:03 - mmengine - INFO - Iter(train) [5750/6543] lr: 7.6239e-06 eta: 0:07:19 time: 0.4933 data_time: 0.0083 memory: 11508 loss: 1.3871 grad_norm: 0.1869 06/02 04:34:08 - mmengine - INFO - Iter(train) [5760/6543] lr: 7.4355e-06 eta: 0:07:14 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.2515 grad_norm: 0.1863 06/02 04:34:13 - mmengine - INFO - Iter(train) [5770/6543] lr: 7.2493e-06 eta: 0:07:08 time: 0.4918 data_time: 0.0078 memory: 11508 loss: 1.3188 grad_norm: 0.1863 06/02 04:34:18 - mmengine - INFO - Iter(train) [5780/6543] lr: 7.0654e-06 eta: 0:07:02 time: 0.4929 data_time: 0.0080 memory: 11508 loss: 1.2369 grad_norm: 0.1845 06/02 04:34:23 - mmengine - INFO - Iter(train) [5790/6543] lr: 6.8838e-06 eta: 0:06:57 time: 0.4921 data_time: 0.0081 memory: 11508 loss: 1.3277 grad_norm: 0.1845 06/02 04:34:28 - mmengine - INFO - Iter(train) [5800/6543] lr: 6.7045e-06 eta: 0:06:51 time: 0.4928 data_time: 0.0081 memory: 11508 loss: 1.2600 grad_norm: 0.1850 06/02 04:34:33 - mmengine - INFO - Iter(train) [5810/6543] lr: 6.5274e-06 eta: 0:06:46 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.2300 grad_norm: 0.1841 06/02 04:34:38 - mmengine - INFO - Iter(train) [5820/6543] lr: 6.3527e-06 eta: 0:06:40 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.2350 grad_norm: 0.1841 06/02 04:34:43 - mmengine - INFO - Iter(train) [5830/6543] lr: 6.1802e-06 eta: 0:06:34 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.2927 grad_norm: 0.1833 06/02 04:34:48 - mmengine - INFO - Iter(train) [5840/6543] lr: 6.0101e-06 eta: 0:06:29 time: 0.4927 data_time: 0.0078 memory: 11508 loss: 1.3093 grad_norm: 0.1837 06/02 04:34:53 - mmengine - INFO - Iter(train) [5850/6543] lr: 5.8422e-06 eta: 0:06:23 time: 0.4923 data_time: 0.0080 memory: 11508 loss: 1.3213 grad_norm: 0.1837 06/02 04:34:57 - mmengine - INFO - Iter(train) [5860/6543] lr: 5.6767e-06 eta: 0:06:18 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.3374 grad_norm: 0.1831 06/02 04:35:02 - mmengine - INFO - Iter(train) [5870/6543] lr: 5.5134e-06 eta: 0:06:12 time: 0.4925 data_time: 0.0080 memory: 11508 loss: 1.2553 grad_norm: 0.1831 06/02 04:35:07 - mmengine - INFO - Iter(train) [5880/6543] lr: 5.3525e-06 eta: 0:06:06 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.2275 grad_norm: 0.1833 06/02 04:35:12 - mmengine - INFO - Iter(train) [5890/6543] lr: 5.1939e-06 eta: 0:06:01 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.3172 grad_norm: 0.1827 06/02 04:35:17 - mmengine - INFO - Iter(train) [5900/6543] lr: 5.0376e-06 eta: 0:05:55 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.3296 grad_norm: 0.1827 06/02 04:35:22 - mmengine - INFO - Iter(train) [5910/6543] lr: 4.8836e-06 eta: 0:05:50 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.2630 grad_norm: 0.1842 06/02 04:35:27 - mmengine - INFO - Iter(train) [5920/6543] lr: 4.7320e-06 eta: 0:05:44 time: 0.4929 data_time: 0.0080 memory: 11508 loss: 1.2410 grad_norm: 0.1852 06/02 04:35:32 - mmengine - INFO - Iter(train) [5930/6543] lr: 4.5827e-06 eta: 0:05:38 time: 0.4917 data_time: 0.0078 memory: 11508 loss: 1.2854 grad_norm: 0.1852 06/02 04:35:37 - mmengine - INFO - Iter(train) [5940/6543] lr: 4.4358e-06 eta: 0:05:33 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.3345 grad_norm: 0.1859 06/02 04:35:42 - mmengine - INFO - Iter(train) [5950/6543] lr: 4.2912e-06 eta: 0:05:27 time: 0.4921 data_time: 0.0080 memory: 11508 loss: 1.2459 grad_norm: 0.1859 06/02 04:35:47 - mmengine - INFO - Iter(train) [5960/6543] lr: 4.1489e-06 eta: 0:05:22 time: 0.4925 data_time: 0.0078 memory: 11508 loss: 1.2589 grad_norm: 0.1851 06/02 04:35:52 - mmengine - INFO - Iter(train) [5970/6543] lr: 4.0090e-06 eta: 0:05:16 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.2910 grad_norm: 0.1854 06/02 04:35:57 - mmengine - INFO - Iter(train) [5980/6543] lr: 3.8714e-06 eta: 0:05:10 time: 0.4923 data_time: 0.0079 memory: 11508 loss: 1.2619 grad_norm: 0.1854 06/02 04:36:01 - mmengine - INFO - Iter(train) [5990/6543] lr: 3.7362e-06 eta: 0:05:05 time: 0.4931 data_time: 0.0080 memory: 11508 loss: 1.2849 grad_norm: 0.1853 06/02 04:36:06 - mmengine - INFO - Exp name: gemma_2b_it_qlora_alpaca_e3_20240602_034031 06/02 04:36:06 - mmengine - INFO - Iter(train) [6000/6543] lr: 3.6033e-06 eta: 0:04:59 time: 0.4930 data_time: 0.0081 memory: 11508 loss: 1.2561 grad_norm: 0.1855 06/02 04:36:06 - mmengine - INFO - after_train_iter in EvaluateChatHook. 06/02 04:36:50 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user 请给我介绍五个上海的景点<end_of_turn> <start_of_turn>model 1. 上海故宫 2. 上海博物馆 3. 上海虹桥 4. 上海天坛 5. 上海体育场 6. 上海科学技术馆 7. 上海博物馆 8. 上海故宫 9. 上海博物馆 10. 上海虹桥 11. 上海天坛 12. 上海体育场 13. 上海科学技术馆 14. 上海博物馆 15. 上海故宫 16. 上海博物馆 17. 上海体育场 18. 上海博物馆 19. 上海故宫 20. 上海博物馆 21. 上海体育场 22. 上海博物馆 23. 上海故宫 24. 上海博物馆 25. 上海体育场 26. 上海博物馆 27. 上海故宫 28. 上海博物馆 29. 上海体育场 30. 上海博物馆 31. 上海故宫 32. 上海博物馆 33. 上海体育场 34. 上海博物馆 35. 上海故宫 36. 上海博物馆 37. 上海体育场 38. 上海博物馆 39. 上海故宫 40. 上海博物馆 41. 上海故宫 42. 上海博物馆 43. 上海故宫 44. 上海博物馆 45. 上海故宫 46. 上海博物馆 47. 上海故宫 48. 上海博物馆 49. 上海故宫 50. 上海博物馆 51. 上海故宫 52. 上海博物馆 53. 上海故宫 54. 上海博物馆 55. 上海故宫 56. 上海博物馆 57. 上海故宫 58. 上海博物馆 59. 上海故宫 60. 上海博物馆 61. 上海故宫 62. 上海博物馆 63. 上海故宫 64. 上海博物馆 65. 上海故宫 66. 上海博物馆 67. 上海博物馆 68. 上海故宫 69. 上海博物馆 70. 上海故宫 71. 上海博物馆 72. 上海博物馆 73. 上海故宫 74. 上海博物馆 75. 上海博物馆 76. 上海故宫 77. 上海博物馆 78. 上海博物馆 79. 上海博物馆 80. 上海博物馆 81. 上海博物馆 82. 上海博物馆 83. 上海博物馆 84. 上海博物馆 85. 上海博物馆 86. 上海博物馆 87. 上海博物馆 88. 上海博物馆 89. 上海博物馆 90. 上海博物馆 91. 上海博物馆 92. 上海博物馆 93. 上海博物馆 94. 上海博物馆 9 06/02 04:36:53 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user Please tell me five scenic spots in Shanghai<end_of_turn> <start_of_turn>model Five scenic spots in Shanghai are the Bund, the Oriental Pearl Tower, the Yu Garden, the Shanghai Disneyland, and the Qing Shan Temple.<end_of_turn> 06/02 04:36:53 - mmengine - INFO - Saving checkpoint at 6000 iterations 06/02 04:37:00 - mmengine - INFO - Iter(train) [6010/6543] lr: 3.4728e-06 eta: 0:04:58 time: 5.3321 data_time: 4.8460 memory: 11508 loss: 1.2958 grad_norm: 0.1855 06/02 04:37:05 - mmengine - INFO - Iter(train) [6020/6543] lr: 3.3447e-06 eta: 0:04:52 time: 0.4927 data_time: 0.0081 memory: 11508 loss: 1.2541 grad_norm: 0.1860 06/02 04:37:10 - mmengine - INFO - Iter(train) [6030/6543] lr: 3.2190e-06 eta: 0:04:47 time: 0.4918 data_time: 0.0080 memory: 11508 loss: 1.3132 grad_norm: 0.1860 06/02 04:37:14 - mmengine - INFO - Iter(train) [6040/6543] lr: 3.0956e-06 eta: 0:04:41 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.2753 grad_norm: 0.1867 06/02 04:37:19 - mmengine - INFO - Iter(train) [6050/6543] lr: 2.9746e-06 eta: 0:04:35 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.2301 grad_norm: 0.1882 06/02 04:37:24 - mmengine - INFO - Iter(train) [6060/6543] lr: 2.8559e-06 eta: 0:04:30 time: 0.4924 data_time: 0.0081 memory: 11508 loss: 1.2543 grad_norm: 0.1882 06/02 04:37:29 - mmengine - INFO - Iter(train) [6070/6543] lr: 2.7397e-06 eta: 0:04:24 time: 0.4926 data_time: 0.0080 memory: 11508 loss: 1.3252 grad_norm: 0.1866 06/02 04:37:34 - mmengine - INFO - Iter(train) [6080/6543] lr: 2.6258e-06 eta: 0:04:18 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.3329 grad_norm: 0.1853 06/02 04:37:39 - mmengine - INFO - Iter(train) [6090/6543] lr: 2.5143e-06 eta: 0:04:13 time: 0.4918 data_time: 0.0080 memory: 11508 loss: 1.3638 grad_norm: 0.1853 06/02 04:37:44 - mmengine - INFO - Iter(train) [6100/6543] lr: 2.4052e-06 eta: 0:04:07 time: 0.4929 data_time: 0.0081 memory: 11508 loss: 1.2429 grad_norm: 0.1852 06/02 04:37:49 - mmengine - INFO - Iter(train) [6110/6543] lr: 2.2985e-06 eta: 0:04:02 time: 0.4920 data_time: 0.0080 memory: 11508 loss: 1.2710 grad_norm: 0.1852 06/02 04:37:54 - mmengine - INFO - Iter(train) [6120/6543] lr: 2.1942e-06 eta: 0:03:56 time: 0.4929 data_time: 0.0080 memory: 11508 loss: 1.2278 grad_norm: 0.1861 06/02 04:37:59 - mmengine - INFO - Iter(train) [6130/6543] lr: 2.0922e-06 eta: 0:03:50 time: 0.4929 data_time: 0.0080 memory: 11508 loss: 1.2901 grad_norm: 0.1860 06/02 04:38:04 - mmengine - INFO - Iter(train) [6140/6543] lr: 1.9927e-06 eta: 0:03:45 time: 0.4922 data_time: 0.0081 memory: 11508 loss: 1.2118 grad_norm: 0.1860 06/02 04:38:09 - mmengine - INFO - Iter(train) [6150/6543] lr: 1.8956e-06 eta: 0:03:39 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.3340 grad_norm: 0.1877 06/02 04:38:14 - mmengine - INFO - Iter(train) [6160/6543] lr: 1.8009e-06 eta: 0:03:33 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.2814 grad_norm: 0.1875 06/02 04:38:19 - mmengine - INFO - Iter(train) [6170/6543] lr: 1.7086e-06 eta: 0:03:28 time: 0.4918 data_time: 0.0079 memory: 11508 loss: 1.2986 grad_norm: 0.1875 06/02 04:38:23 - mmengine - INFO - Iter(train) [6180/6543] lr: 1.6187e-06 eta: 0:03:22 time: 0.4931 data_time: 0.0082 memory: 11508 loss: 1.3181 grad_norm: 0.1869 06/02 04:38:28 - mmengine - INFO - Iter(train) [6190/6543] lr: 1.5312e-06 eta: 0:03:16 time: 0.4921 data_time: 0.0080 memory: 11508 loss: 1.2648 grad_norm: 0.1869 06/02 04:38:33 - mmengine - INFO - Iter(train) [6200/6543] lr: 1.4461e-06 eta: 0:03:11 time: 0.4929 data_time: 0.0080 memory: 11508 loss: 1.3560 grad_norm: 0.1864 06/02 04:38:38 - mmengine - INFO - Iter(train) [6210/6543] lr: 1.3634e-06 eta: 0:03:05 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.2562 grad_norm: 0.1856 06/02 04:38:43 - mmengine - INFO - Iter(train) [6220/6543] lr: 1.2832e-06 eta: 0:03:00 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.1752 grad_norm: 0.1856 06/02 04:38:48 - mmengine - INFO - Iter(train) [6230/6543] lr: 1.2054e-06 eta: 0:02:54 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.2900 grad_norm: 0.1854 06/02 04:38:53 - mmengine - INFO - Iter(train) [6240/6543] lr: 1.1300e-06 eta: 0:02:48 time: 0.4929 data_time: 0.0080 memory: 11508 loss: 1.3011 grad_norm: 0.1857 06/02 04:38:58 - mmengine - INFO - Iter(train) [6250/6543] lr: 1.0570e-06 eta: 0:02:43 time: 0.4921 data_time: 0.0081 memory: 11508 loss: 1.2892 grad_norm: 0.1857 06/02 04:39:03 - mmengine - INFO - Iter(train) [6260/6543] lr: 9.8640e-07 eta: 0:02:37 time: 0.4930 data_time: 0.0080 memory: 11508 loss: 1.2576 grad_norm: 0.1855 06/02 04:39:08 - mmengine - INFO - Iter(train) [6270/6543] lr: 9.1827e-07 eta: 0:02:32 time: 0.4922 data_time: 0.0080 memory: 11508 loss: 1.2803 grad_norm: 0.1855 06/02 04:39:13 - mmengine - INFO - Iter(train) [6280/6543] lr: 8.5256e-07 eta: 0:02:26 time: 0.4935 data_time: 0.0080 memory: 11508 loss: 1.2920 grad_norm: 0.1851 06/02 04:39:18 - mmengine - INFO - Iter(train) [6290/6543] lr: 7.8927e-07 eta: 0:02:20 time: 0.4927 data_time: 0.0080 memory: 11508 loss: 1.2763 grad_norm: 0.1850 06/02 04:39:23 - mmengine - INFO - Iter(train) [6300/6543] lr: 7.2842e-07 eta: 0:02:15 time: 0.4921 data_time: 0.0081 memory: 11508 loss: 1.3185 grad_norm: 0.1850 06/02 04:39:27 - mmengine - INFO - Iter(train) [6310/6543] lr: 6.7001e-07 eta: 0:02:09 time: 0.4929 data_time: 0.0081 memory: 11508 loss: 1.3256 grad_norm: 0.1841 06/02 04:39:32 - mmengine - INFO - Iter(train) [6320/6543] lr: 6.1402e-07 eta: 0:02:04 time: 0.4929 data_time: 0.0081 memory: 11508 loss: 1.3195 grad_norm: 0.1849 06/02 04:39:37 - mmengine - INFO - Iter(train) [6330/6543] lr: 5.6047e-07 eta: 0:01:58 time: 0.4918 data_time: 0.0079 memory: 11508 loss: 1.3087 grad_norm: 0.1849 06/02 04:39:42 - mmengine - INFO - Iter(train) [6340/6543] lr: 5.0936e-07 eta: 0:01:52 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.2418 grad_norm: 0.1843 06/02 04:39:47 - mmengine - INFO - Iter(train) [6350/6543] lr: 4.6068e-07 eta: 0:01:47 time: 0.4921 data_time: 0.0080 memory: 11508 loss: 1.2665 grad_norm: 0.1843 06/02 04:39:52 - mmengine - INFO - Iter(train) [6360/6543] lr: 4.1445e-07 eta: 0:01:41 time: 0.4927 data_time: 0.0079 memory: 11508 loss: 1.3181 grad_norm: 0.1837 06/02 04:39:57 - mmengine - INFO - Iter(train) [6370/6543] lr: 3.7065e-07 eta: 0:01:36 time: 0.4928 data_time: 0.0081 memory: 11508 loss: 1.3073 grad_norm: 0.1834 06/02 04:40:02 - mmengine - INFO - Iter(train) [6380/6543] lr: 3.2929e-07 eta: 0:01:30 time: 0.4921 data_time: 0.0080 memory: 11508 loss: 1.2653 grad_norm: 0.1834 06/02 04:40:07 - mmengine - INFO - Iter(train) [6390/6543] lr: 2.9038e-07 eta: 0:01:25 time: 0.4931 data_time: 0.0081 memory: 11508 loss: 1.3081 grad_norm: 0.1838 06/02 04:40:12 - mmengine - INFO - Iter(train) [6400/6543] lr: 2.5391e-07 eta: 0:01:19 time: 0.4928 data_time: 0.0080 memory: 11508 loss: 1.3498 grad_norm: 0.1838 06/02 04:40:17 - mmengine - INFO - Iter(train) [6410/6543] lr: 2.1988e-07 eta: 0:01:13 time: 0.4923 data_time: 0.0080 memory: 11508 loss: 1.3114 grad_norm: 0.1838 06/02 04:40:22 - mmengine - INFO - Iter(train) [6420/6543] lr: 1.8830e-07 eta: 0:01:08 time: 0.4934 data_time: 0.0085 memory: 11508 loss: 1.2968 grad_norm: 0.1841 06/02 04:40:27 - mmengine - INFO - Iter(train) [6430/6543] lr: 1.5916e-07 eta: 0:01:02 time: 0.4920 data_time: 0.0079 memory: 11508 loss: 1.3312 grad_norm: 0.1841 06/02 04:40:32 - mmengine - INFO - Iter(train) [6440/6543] lr: 1.3247e-07 eta: 0:00:57 time: 0.4930 data_time: 0.0081 memory: 11508 loss: 1.2606 grad_norm: 0.1846 06/02 04:40:36 - mmengine - INFO - Iter(train) [6450/6543] lr: 1.0822e-07 eta: 0:00:51 time: 0.4925 data_time: 0.0079 memory: 11508 loss: 1.3081 grad_norm: 0.1840 06/02 04:40:41 - mmengine - INFO - Iter(train) [6460/6543] lr: 8.6423e-08 eta: 0:00:46 time: 0.4921 data_time: 0.0081 memory: 11508 loss: 1.2634 grad_norm: 0.1840 06/02 04:40:46 - mmengine - INFO - Iter(train) [6470/6543] lr: 6.7073e-08 eta: 0:00:40 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.2690 grad_norm: 0.1844 06/02 04:40:51 - mmengine - INFO - Iter(train) [6480/6543] lr: 5.0171e-08 eta: 0:00:34 time: 0.4927 data_time: 0.0078 memory: 11508 loss: 1.3570 grad_norm: 0.1848 06/02 04:40:56 - mmengine - INFO - Iter(train) [6490/6543] lr: 3.5719e-08 eta: 0:00:29 time: 0.4922 data_time: 0.0082 memory: 11508 loss: 1.2549 grad_norm: 0.1848 06/02 04:41:01 - mmengine - INFO - Iter(train) [6500/6543] lr: 2.3715e-08 eta: 0:00:23 time: 0.4926 data_time: 0.0079 memory: 11508 loss: 1.2488 grad_norm: 0.1856 06/02 04:41:01 - mmengine - INFO - after_train_iter in EvaluateChatHook. 06/02 04:41:03 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user 请给我介绍五个上海的景点<end_of_turn> <start_of_turn>model 1. 上海故宫 2. 上海博物馆 3. 上海虹桥 4. 上海天坛 5. 上海南山公园<end_of_turn> 06/02 04:41:06 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user Please tell me five scenic spots in Shanghai<end_of_turn> <start_of_turn>model Five scenic spots in Shanghai are the Bund, the Oriental Pearl Tower, the Yu Garden, the Shanghai Disneyland, and the Qing Shan Temple.<end_of_turn> 06/02 04:41:06 - mmengine - INFO - Saving checkpoint at 6500 iterations 06/02 04:41:13 - mmengine - INFO - Iter(train) [6510/6543] lr: 1.4161e-08 eta: 0:00:18 time: 1.1633 data_time: 0.6764 memory: 11508 loss: 1.2668 grad_norm: 0.1856 06/02 04:41:18 - mmengine - INFO - Iter(train) [6520/6543] lr: 7.0559e-09 eta: 0:00:12 time: 0.4930 data_time: 0.0081 memory: 11508 loss: 1.3502 grad_norm: 0.1865 06/02 04:41:23 - mmengine - INFO - Iter(train) [6530/6543] lr: 2.4010e-09 eta: 0:00:07 time: 0.4926 data_time: 0.0080 memory: 11508 loss: 1.2928 grad_norm: 0.1867 06/02 04:41:27 - mmengine - INFO - Iter(train) [6540/6543] lr: 1.9600e-10 eta: 0:00:01 time: 0.4919 data_time: 0.0079 memory: 11508 loss: 1.2958 grad_norm: 0.1867 06/02 04:41:29 - mmengine - INFO - after_train_iter in EvaluateChatHook. 06/02 04:41:31 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user 请给我介绍五个上海的景点<end_of_turn> <start_of_turn>model 1. 上海故宫 2. 上海博物馆 3. 上海虹桥 4. 上海天坛 5. 上海东方体育场<end_of_turn> 06/02 04:41:33 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user Please tell me five scenic spots in Shanghai<end_of_turn> <start_of_turn>model Five scenic spots in Shanghai are the Bund, the Oriental Pearl Tower, the Yu Garden, the Shanghai Disneyland, and the Qing Shan Temple.<end_of_turn> 06/02 04:41:33 - mmengine - INFO - Saving checkpoint at 6543 iterations 06/02 04:41:36 - mmengine - INFO - after_train in EvaluateChatHook. 06/02 04:41:38 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user 请给我介绍五个上海的景点<end_of_turn> <start_of_turn>model 1. 上海故宫 2. 上海博物馆 3. 上海虹桥 4. 上海天坛 5. 上海东方体育场<end_of_turn> 06/02 04:41:40 - mmengine - INFO - Sample output: <bos><start_of_turn>system Below is an instruction that describes a task. Write a response that appropriately completes the request. <end_of_turn> <start_of_turn>user Please tell me five scenic spots in Shanghai<end_of_turn> <start_of_turn>model Five scenic spots in Shanghai are the Bund, the Oriental Pearl Tower, the Yu Garden, the Shanghai Disneyland, and the Qing Shan Temple.<end_of_turn>
Convert to Hugging Face
Create a folder for storing converted HF model.
Conver the LoRA adapter to HF.
/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`. warnings.warn( quantization_config convert to <class 'transformers.utils.quantization_config.BitsAndBytesConfig'> `low_cpu_mem_usage` was None, now set to True since model is quantized. `config.hidden_act` is ignored, you should use `config.hidden_activation` instead. Gemma's activation function will be set to `gelu_pytorch_tanh`. Please, use `config.hidden_activation` if you want to override this behaviour. See https://github.com/huggingface/transformers/pull/29402 for more details. Loading checkpoint shards: 100% 2/2 [00:03<00:00, 1.57s/it] Load PTH model from work_dirs/gemma_2b_it_qlora_alpaca_e3/iter_6500.pth Saving adapter to work_dirs/gemma_2b_it_qlora_alpaca_e3_hf Convert LLM to float16 All done!
Merge LoRA adapter
Create a folder for storing the merged model.
Merge the model and the LoRA adapter.
2024-06-02 04:42:02.310283: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2024-06-02 04:42:02.367089: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered 2024-06-02 04:42:02.367144: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered 2024-06-02 04:42:02.369043: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered 2024-06-02 04:42:02.377440: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. 2024-06-02 04:42:03.397550: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT 2024-06-02 04:42:09.253437: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered 2024-06-02 04:42:09.253480: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered 2024-06-02 04:42:09.254641: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered 2024-06-02 04:42:10.256475: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT `config.hidden_act` is ignored, you should use `config.hidden_activation` instead. Gemma's activation function will be set to `gelu_pytorch_tanh`. Please, use `config.hidden_activation` if you want to override this behaviour. See https://github.com/huggingface/transformers/pull/29402 for more details. Loading checkpoint shards: 100% 2/2 [00:03<00:00, 1.56s/it] Saving to work_dirs/gemma_2b_it_qlora_alpaca_e3_merged... All done!
Upload model to Hugging Face
Load the model from disk.
Loading checkpoint shards: 0%| | 0/3 [00:00<?, ?it/s]
Push the model to HF Hub.
model-00001-of-00003.safetensors: 0%| | 0.00/4.91G [00:00<?, ?B/s]
model-00003-of-00003.safetensors: 0%| | 0.00/134M [00:00<?, ?B/s]
model-00002-of-00003.safetensors: 0%| | 0.00/4.98G [00:00<?, ?B/s]
Upload 3 LFS files: 0%| | 0/3 [00:00<?, ?it/s]
CommitInfo(commit_url='https://huggingface.co/windmaple/gemma-2-finetuned-model-xtuner/commit/173d08858a594ed07939f68abb9050f6ceccdf61', commit_message='Upload model', commit_description='', oid='173d08858a594ed07939f68abb9050f6ceccdf61', pr_url=None, pr_revision=None, pr_num=None)
Conclusion
This notebook demonstrates how to use XTuner to do instruction tuning for the Gemma 2B IT model. If you want to finetune with another dataset, please check out the XTuner documentation on how to prepare your own dataset.
Run in Google Colab