windpeaF commited on
Commit
59b759a
·
verified ·
1 Parent(s): 159731c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +29 -1
README.md CHANGED
@@ -23,6 +23,34 @@ This llama model was trained 2x faster with [Unsloth](https://github.com/unsloth
23
 
24
  # Sample use
25
  以下は、elyza-tasks-100-TV_0.jsonlの回答のためのコードです。
 
 
 
26
  ```python
 
 
 
 
 
 
 
 
 
27
 
28
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  # Sample use
25
  以下は、elyza-tasks-100-TV_0.jsonlの回答のためのコードです。
26
+
27
+ terminalでのconda環境構築
28
+ 事前にterminalで環境構築の必要があります。Google Colabでは不要です。
29
  ```python
30
+ # conda環境の構築
31
+ wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
32
+
33
+ # このコマンドではいくつか質問があるので答えて下さい。おそらくインストール先のデフォルトは/root/miniforge3かと思います
34
+ bash Miniforge3-$(uname)-$(uname -m).sh
35
+
36
+ # 以下、インストール先が/root/miniforge3であることを前提とします
37
+ export PATH=/root/miniforge3/bin:$PATH
38
+ conda init
39
 
40
+ # ここで一度、terminalを立ち上げ直す必要があります。
41
+ # 以下のリンク先に従い環境を作ります。
42
+ # https://docs.unsloth.ai/get-started/installation/conda-install
43
+ conda create --name unsloth_env python=3.10 pytorch-cuda=12.1 pytorch cudatoolkit xformers -c pytorch -c nvidia -c xformers -y
44
+ conda activate unsloth_env
45
+ pip install "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git"
46
+ pip install --no-deps "trl<0.9.0" peft accelerate bitsandbytes
47
+
48
+ # jupyter notebook用のセットアップ。
49
+ conda install -c conda-forge ipykernel
50
+ python -m ipykernel install --user --name=unsloth_env --display-name "Python (unsloth_env)"
51
+ ```
52
+ ```python
53
+ # Google Colab の場合は上記の環境構築手順を行なわず、単にこのセルから実行していってください。
54
+ !pip uninstall unsloth -y
55
+ !pip install --upgrade --no-cache-dir "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git"
56
+ ```