abhiyanta commited on
Commit
24e3d75
·
verified ·
1 Parent(s): 1c54ace

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -6
README.md CHANGED
@@ -3,6 +3,7 @@ license: mit
3
  language:
4
  - en
5
  base_model: meta-llama/Meta-Llama-3.1-8B-Instruct
 
6
  ---
7
 
8
  # LLaMA 3 8B - ChatDoctor Model
@@ -33,9 +34,4 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
33
 
34
  # Load the fine-tuned model and tokenizer
35
  model = AutoModelForCausalLM.from_pretrained("abhiyanta/llama-chatdoctor")
36
- tokenizer = AutoTokenizer.from_pretrained("abhiyanta/llama-chatdoctor")
37
-
38
- # Generate text
39
- inputs = tokenizer("What are the symptoms of diabetes?", return_tensors="pt")
40
- outputs = model.generate(**inputs, max_new_tokens=50)
41
- print(tokenizer.decode(outputs[0]))
 
3
  language:
4
  - en
5
  base_model: meta-llama/Meta-Llama-3.1-8B-Instruct
6
+ library_name: transformers
7
  ---
8
 
9
  # LLaMA 3 8B - ChatDoctor Model
 
34
 
35
  # Load the fine-tuned model and tokenizer
36
  model = AutoModelForCausalLM.from_pretrained("abhiyanta/llama-chatdoctor")
37
+ tokenizer = AutoTokenizer.from_pretrained("abhiyanta/llama-chatdoctor")