YC-Chen commited on
Commit
7a42a5e
·
verified ·
1 Parent(s): 00dfc04

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -0
README.md CHANGED
@@ -17,6 +17,27 @@ It incorporates vision-aware capabilities through a visual encoder and a bridge
17
 
18
  *We list all contributors in alphabetical order of their first names, as follows: Chan-Jan Hsu (許湛然), Chia-Sheng Liu (劉佳昇), Meng-Hsi Chen (陳孟羲), Muxi Chen (陳沐希), Po-Chun Hsu (許博竣), Yi-Chang Chen (陳宜昌), and the supervisor Da-Shan Shiu (許大山).*
19
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  ## Feature: Instruction Following
21
 
22
  ## Feature: Visual Instruction Following
 
17
 
18
  *We list all contributors in alphabetical order of their first names, as follows: Chan-Jan Hsu (許湛然), Chia-Sheng Liu (劉佳昇), Meng-Hsi Chen (陳孟羲), Muxi Chen (陳沐希), Po-Chun Hsu (許博竣), Yi-Chang Chen (陳宜昌), and the supervisor Da-Shan Shiu (許大山).*
19
 
20
+ ## Installation
21
+
22
+ ```
23
+ pip3 install transformers==4.47.0
24
+ pip3 install -U mtkresearch
25
+ ```
26
+
27
+ ```python
28
+ from transformers import AutoModel, AutoTokenizer
29
+ import torch
30
+
31
+ model_id = 'MediaTek-Research/Breeze2-8B-Instruct-v0_1'
32
+ model = AutoModel.from_pretrained(
33
+ model_id,
34
+ torch_dtype=torch.bfloat16,
35
+ low_cpu_mem_usage=True,
36
+ trust_remote_code=True,
37
+ device_map='auto').eval()
38
+ tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True, use_fast=False)
39
+ ```
40
+
41
  ## Feature: Instruction Following
42
 
43
  ## Feature: Visual Instruction Following