Text Generation
Transformers
Safetensors
jamba
conversational
custom_code
Inference Endpoints
ptrdvn commited on
Commit
5ccae27
1 Parent(s): 039b95c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -4
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, AutoTokenizer
 
25
 
26
- model = AutoModelForCausalLM.from_pretrained("kinokokoro/jamba_airoboros3.2_sharegpt4",
27
- trust_remote_code=True)
 
 
 
 
 
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, known as "delayed implantation." After mating, the fertilized egg remains dormant in the female's uterus for up to six months before it starts developing into an embryo. This allows the mother to time the birth of her offspring with optimal environmental conditions and food availability.<|im_end|>
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