Update README.md
Browse files
README.md
CHANGED
|
@@ -1,31 +1,38 @@
|
|
| 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 |
-
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- ko
|
| 4 |
+
- en
|
| 5 |
+
base_model:
|
| 6 |
+
- naver-hyperclovax/HyperCLOVAX-SEED-Text-Instruct-1.5B
|
| 7 |
+
---
|
| 8 |
+
llama.cpp๋ฅผ ์ฌ์ฉํด gguf๋ก ๋ณํํ์ต๋๋ค.
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
```python
|
| 12 |
+
from llama_cpp import Llama
|
| 13 |
+
|
| 14 |
+
llm = Llama(
|
| 15 |
+
model_path="HyperCLOVAX-SEED-Text-Instruct-1.5B-gguf-bf16.gguf",
|
| 16 |
+
n_gpu_layers=-1,
|
| 17 |
+
main_gpu=0,
|
| 18 |
+
n_ctx=2048
|
| 19 |
+
)
|
| 20 |
+
|
| 21 |
+
output = llm(
|
| 22 |
+
"์ฌ๋ฏธ์๋ ์ด์ผ๊ธฐ ํ๋ ๋ง๋ค์ด์ค. 1000์ ์ด์์ด์ด์ผ ํด. ์์:", # Prompt
|
| 23 |
+
max_tokens=2048,
|
| 24 |
+
echo=True,
|
| 25 |
+
|
| 26 |
+
)
|
| 27 |
+
print(output)
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
geforce 3070 RTX๋ก ํ
์คํธํ์ผ๋ฉฐ, ์ฑ๋ฅ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
|
| 31 |
+
|
| 32 |
+
```angular2html
|
| 33 |
+
bf16, peak: 4GB
|
| 34 |
+
llama_perf_context_print: load time = 210.50 ms
|
| 35 |
+
llama_perf_context_print: prompt eval time = 210.42 ms / 19 tokens ( 11.07 ms per token, 90.30 tokens per second)
|
| 36 |
+
llama_perf_context_print: eval time = 17923.17 ms / 2028 runs ( 8.84 ms per token, 113.15 tokens per second)
|
| 37 |
+
llama_perf_context_print: total time = 21307.79 ms / 2047 tokens
|
| 38 |
```
|