aksinghyaani commited on
Commit
459a8eb
·
verified ·
1 Parent(s): 63c78ab

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -95,10 +95,11 @@ Mobile-LLM model checkpoints are not publicly available; their results are repor
95
  ## 🚀 Usage
96
 
97
  ```python
98
- ! pip install transformers=='5.4.0'
99
 
100
  from transformers import AutoModelForCausalLM, AutoTokenizer
101
 
 
102
  model_name = "Rta-AILabs/Nandi-mini-150M"
103
 
104
  tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
@@ -107,7 +108,6 @@ model = AutoModelForCausalLM.from_pretrained(
107
  model_name,
108
  trust_remote_code=True,
109
  device_map="auto",
110
- torch_dtype=torch.bfloat16
111
  )
112
 
113
  prompt = "Newton's Second Law"
@@ -116,7 +116,7 @@ model_inputs = tokenizer([prompt], return_tensors="pt").to(model.device)
116
  outputs = model.generate(
117
  **model_inputs,
118
  max_new_tokens=200,
119
- do_sample=False,
120
  temperature=0.3,
121
  top_k=20,
122
  repetition_penalty=1.1,
 
95
  ## 🚀 Usage
96
 
97
  ```python
98
+ !pip install transformers=='5.4.0'
99
 
100
  from transformers import AutoModelForCausalLM, AutoTokenizer
101
 
102
+
103
  model_name = "Rta-AILabs/Nandi-mini-150M"
104
 
105
  tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
 
108
  model_name,
109
  trust_remote_code=True,
110
  device_map="auto",
 
111
  )
112
 
113
  prompt = "Newton's Second Law"
 
116
  outputs = model.generate(
117
  **model_inputs,
118
  max_new_tokens=200,
119
+ do_sample=True,
120
  temperature=0.3,
121
  top_k=20,
122
  repetition_penalty=1.1,