Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
widget:
|
4 |
+
- example_title: Yi-34B-Chat
|
5 |
+
text: hi
|
6 |
+
output:
|
7 |
+
text: ' Hello! How can I assist you today?'
|
8 |
+
- example_title: Yi-34B
|
9 |
+
text: There's a place where time stands still. A place of breath taking wonder,
|
10 |
+
but also
|
11 |
+
output:
|
12 |
+
text: ' an eerie sense that something is just not right…
|
13 |
+
|
14 |
+
Between the two worlds lies The Forgotten Kingdom - home to creatures long since
|
15 |
+
thought extinct and ancient magic so strong it defies belief! Only here can
|
16 |
+
you find what has been lost for centuries: An Elixir Of Life which will restore
|
17 |
+
youth and vitality if only those who seek its power are brave enough to face
|
18 |
+
up against all manner of dangers lurking in this mysterious land! But beware;
|
19 |
+
some say there may even exist powerful entities beyond our comprehension whose
|
20 |
+
intentions towards humanity remain unclear at best ---- they might want nothing
|
21 |
+
more than destruction itself rather then anything else from their quest after
|
22 |
+
immortality (and maybe someone should tell them about modern medicine)? In any
|
23 |
+
event though – one thing remains true regardless : whether or not success comes
|
24 |
+
easy depends entirely upon how much effort we put into conquering whatever challenges
|
25 |
+
lie ahead along with having faith deep down inside ourselves too ;) So let’s
|
26 |
+
get started now shall We?'
|
27 |
+
pipeline_tag: text-generation
|
28 |
+
tags:
|
29 |
+
- mlx
|
30 |
+
base_model: 01-ai/Yi-34B-200K
|
31 |
+
---
|
32 |
+
|
33 |
+
# Fmuaddib/Yi-34B-200K-mlx-6Bit
|
34 |
+
|
35 |
+
The Model [Fmuaddib/Yi-34B-200K-mlx-6Bit](https://huggingface.co/Fmuaddib/Yi-34B-200K-mlx-6Bit) was converted to MLX format from [01-ai/Yi-34B-200K](https://huggingface.co/01-ai/Yi-34B-200K) using mlx-lm version **0.21.5**.
|
36 |
+
|
37 |
+
## Use with mlx
|
38 |
+
|
39 |
+
```bash
|
40 |
+
pip install mlx-lm
|
41 |
+
```
|
42 |
+
|
43 |
+
```python
|
44 |
+
from mlx_lm import load, generate
|
45 |
+
|
46 |
+
model, tokenizer = load("Fmuaddib/Yi-34B-200K-mlx-6Bit")
|
47 |
+
|
48 |
+
prompt="hello"
|
49 |
+
|
50 |
+
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
|
51 |
+
messages = [{"role": "user", "content": prompt}]
|
52 |
+
prompt = tokenizer.apply_chat_template(
|
53 |
+
messages, tokenize=False, add_generation_prompt=True
|
54 |
+
)
|
55 |
+
|
56 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
57 |
+
```
|