entfane commited on
Commit
dc6f0e5
·
verified ·
1 Parent(s): 38aa35e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -30,7 +30,7 @@ from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
30
  model_name = "entfane/math-professor-3B"
31
  tokenizer = AutoTokenizer.from_pretrained(model_name)
32
  model = AutoModelForCausalLM.from_pretrained(model_name)
33
- input = "### User: Tell me some interesting fact \n### Assistant:"
34
  encoded_input = tokenizer(input, return_tensors = "pt").to(model.device)
35
  output = model.generate(**encoded_input, max_new_tokens=1024)
36
  print(tokenizer.decode(output[0], skip_special_tokens=False))
 
30
  model_name = "entfane/math-professor-3B"
31
  tokenizer = AutoTokenizer.from_pretrained(model_name)
32
  model = AutoModelForCausalLM.from_pretrained(model_name)
33
+ input = "### User: what is the derivative of 2x^2 \n### Assistant:"
34
  encoded_input = tokenizer(input, return_tensors = "pt").to(model.device)
35
  output = model.generate(**encoded_input, max_new_tokens=1024)
36
  print(tokenizer.decode(output[0], skip_special_tokens=False))