File size: 942 Bytes
c9145cd
 
6ac88ba
 
c465174
 
c9145cd
6ac88ba
 
 
0411976
d5f6fa6
 
 
 
 
 
 
6ac88ba
 
 
 
 
 
 
 
 
10048e5
c465174
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
license: apache-2.0
language:
- ja
tags:
- gpt-2
---
# line-corporation/japanese-large-lm-1.7b-instruction-sft
[line-corporationさんが公開しているjapanese-large-lm-1.7b-instruction-sft](https://huggingface.co/line-corporation/japanese-large-lm-1.7b-instruction-sft)のggml変換版です。

*本家ggmlのリポジトリはeosトークンが固定となっているので修正しました。こちらはブランチになります*
*eosトークンは
```
<|endoftext|>
</s>
[EOS]
```
を検索して自動で設定します。また、--repeat-penalty を設定できます。*

## Usage

```
git clone --branch gpt2 https://github.com/mmnga/ggml.git
cd ggml
mkdir build && cd build
cmake ..
make -j
./bin/gpt-2 -m 'line-corp-japanese-large-lm-1.7b-instruction-sft-ggml-q4_0.bin' -n 128 -t 8 -p 'ユーザー: 四国の県名を全て列挙してください。\nシステム: ' --top_p 0.9 --temp 0.7 --repeat-penalty 1.1
```