Update README.md
Browse files
README.md
CHANGED
@@ -39,58 +39,17 @@ This is the model card of a π€ transformers model that has been pushed on the
|
|
39 |
|
40 |
## How to use
|
41 |
|
42 |
-
This repo provides
|
43 |
|
44 |
-
|
45 |
|
46 |
-
|
|
|
|
|
47 |
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
model_id = "mirlab/AkaLlama-llama3-70b-v0.1-GGUF"
|
53 |
-
|
54 |
-
pipeline = transformers.pipeline(
|
55 |
-
"text-generation",
|
56 |
-
model=model_id,
|
57 |
-
model_kwargs={"torch_dtype": torch.bfloat16},
|
58 |
-
device="auto",
|
59 |
-
)
|
60 |
-
|
61 |
-
system_prompt = """λΉμ μ μ°μΈλνκ΅ λ©ν°λͺ¨λ¬ μ°κ΅¬μ€ (MIR lab) μ΄ λ§λ λκ·λͺ¨ μΈμ΄ λͺ¨λΈμΈ AkaLlama (μμΉ΄λΌλ§) μ
λλ€.
|
62 |
-
λ€μ μ§μΉ¨μ λ°λ₯΄μΈμ:
|
63 |
-
1. μ¬μ©μκ° λ³λλ‘ μμ²νμ§ μλ ν νμ νκΈλ‘ μν΅νμΈμ.
|
64 |
-
2. μ ν΄νκ±°λ λΉμ€λ¦¬μ , μ°¨λ³μ , μννκ±°λ λΆλ²μ μΈ λ΄μ©μ΄ λ΅λ³μ ν¬ν¨λμ΄μλ μ λ©λλ€.
|
65 |
-
3. μ§λ¬Έμ΄ λ§μ΄ λμ§ μκ±°λ μ¬μ€μ λΆν©νμ§ μλ κ²½μ° μ λ΅ λμ κ·Έ μ΄μ λ₯Ό μ€λͺ
νμΈμ. μ§λ¬Έμ λν λ΅μ λͺ¨λ₯Έλ€λ©΄ κ±°μ§ μ 보λ₯Ό 곡μ νμ§ λ§μΈμ.
|
66 |
-
4. μμ μ΄λ μ€λ¦¬μ μλ°°λμ§ μλ ν μ¬μ©μμ λͺ¨λ μ§λ¬Έμ μμ νκ³ ν¬κ΄μ μΌλ‘ λ΅λ³νμΈμ."""
|
67 |
-
|
68 |
-
messages = [
|
69 |
-
{"role": "system", "content": system_prompt},
|
70 |
-
{"role": "user", "content": "λ€ μ΄λ¦μ λμΌ?"},
|
71 |
-
]
|
72 |
-
|
73 |
-
prompt = pipeline.tokenizer.apply_chat_template(
|
74 |
-
messages,
|
75 |
-
tokenize=False,
|
76 |
-
add_generation_prompt=True
|
77 |
-
)
|
78 |
-
|
79 |
-
terminators = [
|
80 |
-
pipeline.tokenizer.eos_token_id,
|
81 |
-
pipeline.tokenizer.convert_tokens_to_ids("<|eot_id|>")
|
82 |
-
]
|
83 |
-
|
84 |
-
outputs = pipeline(
|
85 |
-
prompt,
|
86 |
-
max_new_tokens=256,
|
87 |
-
eos_token_id=terminators,
|
88 |
-
do_sample=True,
|
89 |
-
temperature=0.6,
|
90 |
-
top_p=0.9,
|
91 |
-
)
|
92 |
-
print(outputs[0]["generated_text"][len(prompt):])
|
93 |
-
# λ΄ μ΄λ¦μ AkaLlamaμ
λλ€! λλ μΈμ΄ λͺ¨λΈλ‘, μ¬μ©μμ λννλ λ° λμμ μ£ΌκΈ° μν΄ λ§λ€μ΄μ‘μ΅λλ€. λλ λ€μν μ£Όμ μ λν μ§λ¬Έμ λ΅νκ³ , μλ‘μ΄ μμ΄λμ΄λ₯Ό μ 곡νλ©°, λ¬Έμ λ₯Ό ν΄κ²°νλ λ° λμμ΄ λ μ μμ΅λλ€. μ¬μ©μκ° μνλ μ 보λ λμμ λ°λλ‘ μ΅μ μ λ€ν κ²μ
λλ€!
|
94 |
```
|
95 |
|
96 |
## Evaluation
|
|
|
39 |
|
40 |
## How to use
|
41 |
|
42 |
+
This repo provides quantized model weight files for AkaLlama-70B-v0.1.
|
43 |
|
44 |
+
### Chat by `ollama`
|
45 |
|
46 |
+
```bash
|
47 |
+
#download model weight
|
48 |
+
wget https://huggingface.co/mirlab/AkaLlama-llama3-70b-v0.1-GGUF/resolve/main/smthing.gguf
|
49 |
|
50 |
+
# run ollama
|
51 |
+
ollama create
|
52 |
+
ollama run llava-llama3-f16 "λ€ μ΄λ¦μ λμΌ?"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
```
|
54 |
|
55 |
## Evaluation
|