自学内容网 自学内容网

如何使 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",
        },
---

原文地址:https://blog.csdn.net/engchina/article/details/145252074

免责声明:本站文章内容转载自网络资源,如侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!