Update README.md
Browse files
README.md
CHANGED
@@ -23,16 +23,16 @@ This llama model was trained 2x faster with [Unsloth](https://github.com/unsloth
|
|
23 |
|
24 |
### How to use
|
25 |
|
26 |
-
|
27 |
# 必要なライブラリをインストール
|
28 |
%%capture
|
29 |
!pip install unsloth
|
30 |
!pip uninstall unsloth -y && pip install --upgrade --no-cache-dir "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git"
|
31 |
!pip install -U torch
|
32 |
!pip install -U peft
|
33 |
-
|
34 |
|
35 |
-
|
36 |
# 必要なライブラリを読み込み
|
37 |
from unsloth import FastLanguageModel
|
38 |
from peft import PeftModel
|
@@ -96,4 +96,4 @@ with open(f"/content/{json_file_id}_output.jsonl", 'w', encoding='utf-8') as f:
|
|
96 |
for result in results:
|
97 |
json.dump(result, f, ensure_ascii=False)
|
98 |
f.write('\n')
|
99 |
-
|
|
|
23 |
|
24 |
### How to use
|
25 |
|
26 |
+
```bash
|
27 |
# 必要なライブラリをインストール
|
28 |
%%capture
|
29 |
!pip install unsloth
|
30 |
!pip uninstall unsloth -y && pip install --upgrade --no-cache-dir "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git"
|
31 |
!pip install -U torch
|
32 |
!pip install -U peft
|
33 |
+
```
|
34 |
|
35 |
+
```python
|
36 |
# 必要なライブラリを読み込み
|
37 |
from unsloth import FastLanguageModel
|
38 |
from peft import PeftModel
|
|
|
96 |
for result in results:
|
97 |
json.dump(result, f, ensure_ascii=False)
|
98 |
f.write('\n')
|
99 |
+
```
|