renillhuang
commited on
Commit
•
a9189fd
1
Parent(s):
00b0e32
Update README_ja.md
Browse files- README_ja.md +33 -4
README_ja.md
CHANGED
@@ -32,7 +32,7 @@
|
|
32 |
- [📖 モデル紹介](#model-introduction)
|
33 |
- [🔗 モデルダウンロード](#model-download)
|
34 |
- [🔖 モデルベンチマーク](#model-benchmark)
|
35 |
-
- [📊 モデル推論](#model-inference)
|
36 |
- [📜 声明とライセンス](#declarations-license)
|
37 |
- [🥇 企業紹介](#company-introduction)
|
38 |
|
@@ -262,9 +262,38 @@ CUDA_VISIBLE_DEVICES=0 python demo/text_generation_base.py --model OrionStarAI/O
|
|
262 |
# チャットモデル
|
263 |
CUDA_VISIBLE_DEVICES=0 python demo/text_generation.py --model OrionStarAI/Orion-14B-Chat --tokenizer OrionStarAI/Orion-14B-Chat --prompt hi
|
264 |
```
|
|
|
265 |
|
266 |
-
|
267 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
268 |
|
269 |
`````
|
270 |
User: Hello
|
@@ -286,7 +315,7 @@ User: Tell me a joke.
|
|
286 |
Orion-14B: Sure, here's a classic one-liner: Why don't scientists trust atoms? Because they make up everything.
|
287 |
`````
|
288 |
|
289 |
-
### 4.
|
290 |
|
291 |
`````
|
292 |
User:自己を紹介してください
|
|
|
32 |
- [📖 モデル紹介](#model-introduction)
|
33 |
- [🔗 モデルダウンロード](#model-download)
|
34 |
- [🔖 モデルベンチマーク](#model-benchmark)
|
35 |
+
- [📊 モデル推論](#model-inference)[<img src="./assets/imgs/vllm.png" alt="vllm" height="20"/>](#vllm) [<img src="./assets/imgs/llama_cpp.png" alt="llamacpp" height="20"/>](#llama-cpp)
|
36 |
- [📜 声明とライセンス](#declarations-license)
|
37 |
- [🥇 企業紹介](#company-introduction)
|
38 |
|
|
|
262 |
# チャットモデル
|
263 |
CUDA_VISIBLE_DEVICES=0 python demo/text_generation.py --model OrionStarAI/Orion-14B-Chat --tokenizer OrionStarAI/Orion-14B-Chat --prompt hi
|
264 |
```
|
265 |
+
## 4.4. Inference by vllm
|
266 |
|
267 |
+
- Project URL<br>
|
268 |
+
https://github.com/vllm-project/vllm
|
269 |
+
|
270 |
+
- Pull Request<br>
|
271 |
+
https://github.com/vllm-project/vllm/pull/2539
|
272 |
+
|
273 |
+
<a name="llama-cpp"></a><br>
|
274 |
+
## 4.5. Inference by llama.cpp
|
275 |
+
|
276 |
+
- Project URL<br>
|
277 |
+
https://github.com/ggerganov/llama.cpp
|
278 |
+
|
279 |
+
- Pull Request<br>
|
280 |
+
https://github.com/ggerganov/llama.cpp/pull/5118
|
281 |
+
|
282 |
+
- How to convert to GGUF model
|
283 |
+
|
284 |
+
```shell
|
285 |
+
python convert-hf-to-gguf.py path/to/Orion-14B-Chat --outfile chat.gguf
|
286 |
+
```
|
287 |
+
|
288 |
+
- How to run generation
|
289 |
+
|
290 |
+
```shell
|
291 |
+
./main --frequency-penalty 0.5 --frequency-penalty 0.5 --top-k 5 --top-p 0.9 -m chat.gguf -p "Building a website can be done in 10 simple steps:\nStep 1:" -n 400 -e
|
292 |
+
```
|
293 |
+
|
294 |
+
|
295 |
+
## 4.6 例の出力
|
296 |
+
### 4.6.1 カジュアルチャット
|
297 |
|
298 |
`````
|
299 |
User: Hello
|
|
|
315 |
Orion-14B: Sure, here's a classic one-liner: Why don't scientists trust atoms? Because they make up everything.
|
316 |
`````
|
317 |
|
318 |
+
### 4.6.2. 日本語と韓国語のチャット
|
319 |
|
320 |
`````
|
321 |
User:自己を紹介してください
|