Taka008 commited on
Commit
1a1444b
1 Parent(s): e66c95a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -55,8 +55,8 @@ Checkpoints format: Hugging Face Transformers
55
  ```python
56
  import torch
57
  from transformers import AutoTokenizer, AutoModelForCausalLM
58
- tokenizer = AutoTokenizer.from_pretrained("llm-jp-3-13b")
59
- model = AutoModelForCausalLM.from_pretrained("llm-jp-3-13b", device_map="auto", torch_dtype=torch.bfloat16)
60
  text = "自然言語処理とは何か"
61
  tokenized_input = tokenizer.encode(text, add_special_tokens=False, return_tensors="pt").to(model.device)
62
  with torch.no_grad():
 
55
  ```python
56
  import torch
57
  from transformers import AutoTokenizer, AutoModelForCausalLM
58
+ tokenizer = AutoTokenizer.from_pretrained("llm-jp/llm-jp-3-13b")
59
+ model = AutoModelForCausalLM.from_pretrained("llm-jp/llm-jp-3-13b", device_map="auto", torch_dtype=torch.bfloat16)
60
  text = "自然言語処理とは何か"
61
  tokenized_input = tokenizer.encode(text, add_special_tokens=False, return_tensors="pt").to(model.device)
62
  with torch.no_grad():