Bootstrap

如何使 LLaMA-Factory 支持 google/gemma-2-2b-jpn-it 的微调

如何使 LLaMA-Factory 支持 google/gemma-2-2b-jpn-it 的微调

追加,

        "Gemma-2-2B-JPN-Instruct": {
            DownloadSource.DEFAULT: "google/gemma-2-2b-jpn-it",
        },

修改 constants.py,

vi ./src/llamafactory/extras/constants.py

---
        "Gemma-2-2B-Instruct": {
            DownloadSource.DEFAULT: "google/gemma-2-2b-it",
            DownloadSource.MODELSCOPE: "LLM-Research/gemma-2-2b-it",
            DownloadSource.OPENMIND: "LlamaFactory/gemma-2-2b-it",
        },
        "Gemma-2-2B-JPN-Instruct": {
            DownloadSource.DEFAULT: "google/gemma-2-2b-jpn-it",
        },
        "Gemma-2-9B-Instruct": {
            DownloadSource.DEFAULT: "google/gemma-2-9b-it",
            DownloadSource.MODELSCOPE: "LLM-Research/gemma-2-9b-it",
            DownloadSource.OPENMIND: "LlamaFactory/gemma-2-9b-it",
        },
---
;