Update README.md
Browse files
README.md
CHANGED
@@ -21,10 +21,16 @@ Initial subjective testing has shown that this model can chat reasonably well in
|
|
21 |
## How to use
|
22 |
|
23 |
```python
|
24 |
-
from transformers import AutoModelForCausalLM,
|
|
|
25 |
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
28 |
tokenizer = AutoTokenizer.from_pretrained("kinokokoro/jamba_airoboros3.2_sharegpt4")
|
29 |
|
30 |
input_text = """<|im_start|>system
|
@@ -48,7 +54,7 @@ print(tokenizer.batch_decode(outputs)[0])
|
|
48 |
# What is the most interesting fact about kangaroos that you know?
|
49 |
# <|im_end|>
|
50 |
# <|im_start|>assistant
|
51 |
-
# One of the most interesting facts about kangaroos is their unique reproductive system,
|
52 |
# <|endoftext|>
|
53 |
```
|
54 |
|
|
|
21 |
## How to use
|
22 |
|
23 |
```python
|
24 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
|
25 |
+
import torch
|
26 |
|
27 |
+
double_quant_config = BitsAndBytesConfig(
|
28 |
+
load_in_4bit=True,
|
29 |
+
bnb_4bit_use_double_quant=True,
|
30 |
+
bnb_4bit_compute_dtype=torch.float16
|
31 |
+
)
|
32 |
+
|
33 |
+
model = AutoModelForCausalLM.from_pretrained("lightblue/Jamba-v0.1-chat-multilingual", device_map="auto", quantization_config=double_quant_config, trust_remote_code=True)
|
34 |
tokenizer = AutoTokenizer.from_pretrained("kinokokoro/jamba_airoboros3.2_sharegpt4")
|
35 |
|
36 |
input_text = """<|im_start|>system
|
|
|
54 |
# What is the most interesting fact about kangaroos that you know?
|
55 |
# <|im_end|>
|
56 |
# <|im_start|>assistant
|
57 |
+
# One of the most interesting facts about kangaroos is their unique reproductive system, which involves embryonic diapause and multiple births. Female kangaroos can have up to three joeys at different stages of development simultaneously: one fully developed in the pouch, another developing inside her body, and an embryo waiting for its turn.<|im_end|>
|
58 |
# <|endoftext|>
|
59 |
```
|
60 |
|