Update README.md
Browse files
README.md
CHANGED
@@ -30,14 +30,14 @@ torch.set_default_dtype(torch.bfloat16)
|
|
30 |
tokenizer = AutoTokenizer.from_pretrained("hpcai-tech/grok-1", trust_remote_code=True)
|
31 |
|
32 |
model = AutoModelForCausalLM.from_pretrained(
|
33 |
-
"
|
34 |
trust_remote_code=True,
|
35 |
device_map="auto",
|
36 |
torch_dtype=torch.bfloat16,
|
37 |
)
|
38 |
model.eval()
|
39 |
|
40 |
-
text = "
|
41 |
input_ids = tokenizer(text, return_tensors="pt").input_ids
|
42 |
input_ids = input_ids.cuda()
|
43 |
attention_mask = torch.ones_like(input_ids)
|
|
|
30 |
tokenizer = AutoTokenizer.from_pretrained("hpcai-tech/grok-1", trust_remote_code=True)
|
31 |
|
32 |
model = AutoModelForCausalLM.from_pretrained(
|
33 |
+
"xDAN-AI/APUS-xDAN-4.0-MOE",
|
34 |
trust_remote_code=True,
|
35 |
device_map="auto",
|
36 |
torch_dtype=torch.bfloat16,
|
37 |
)
|
38 |
model.eval()
|
39 |
|
40 |
+
text = "Hi, xDAN-APUS4.0, nice to meet you!"
|
41 |
input_ids = tokenizer(text, return_tensors="pt").input_ids
|
42 |
input_ids = input_ids.cuda()
|
43 |
attention_mask = torch.ones_like(input_ids)
|