None1145 commited on
Commit
4125dea
·
verified ·
1 Parent(s): edc5e74
Files changed (1) hide show
  1. README.md +2 -0
README.md CHANGED
@@ -25,5 +25,7 @@ ver = "ver0.2"
25
  model_id = "None1145/Llama-3-8B-Theresa/{ver}"
26
 
27
  pipeline = transformers.pipeline(
 
 
28
  pipeline("你好")
29
  ```
 
25
  model_id = "None1145/Llama-3-8B-Theresa/{ver}"
26
 
27
  pipeline = transformers.pipeline(
28
+ "text-generation", model=model_id, model_kwargs={"torch_dtype": torch.bfloat16}, device_map="auto"
29
+ )
30
  pipeline("你好")
31
  ```