fix
This commit is contained in:
parent
462af07720
commit
301c2ea9c4
12
lang/ja.md
12
lang/ja.md
@ -39,7 +39,13 @@ webからはatprotoを通じて実行されます。
|
|||||||
apple siliconでLoRA(finetuning)するには`mlx_lm`を使用します。
|
apple siliconでLoRA(finetuning)するには`mlx_lm`を使用します。
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# https://ai.google.dev/gemma/docs/core/lora_tuning
|
$ brew install --cask anaconda
|
||||||
|
$ brew info anaconda
|
||||||
|
$ cd /opt/homebrew/Caskroom/anaconda/*
|
||||||
|
$ ./Anaconda3*.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
```sh
|
||||||
$ conda create -n finetuning python=3.11
|
$ conda create -n finetuning python=3.11
|
||||||
$ conda activate finetuning
|
$ conda activate finetuning
|
||||||
$ pip install mlx-lm #apple silicon
|
$ pip install mlx-lm #apple silicon
|
||||||
@ -59,7 +65,7 @@ $ ollama create ai -f ./Modelfile
|
|||||||
|
|
||||||
## unsloth
|
## unsloth
|
||||||
|
|
||||||
windowsでgemma3をunslothしてcustom modelを作成します。
|
windowsでLoRA(finetuning)するには`unsloth`を使います。
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ nvidia-smi
|
$ nvidia-smi
|
||||||
@ -82,6 +88,8 @@ $ powershell.exe -ExecutionPolicy Bypass -File .\unsloth_windows.ps1
|
|||||||
$ vim custom.py
|
$ vim custom.py
|
||||||
```
|
```
|
||||||
|
|
||||||
|
上記はpwshでunsolthを使う方法ですが、wslを使ったほうがいいです。
|
||||||
|
|
||||||
```py
|
```py
|
||||||
# https://docs.unsloth.ai/get-started/fine-tuning-guide
|
# https://docs.unsloth.ai/get-started/fine-tuning-guide
|
||||||
from unsloth import FastModel
|
from unsloth import FastModel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user