Egrigor commited on
Commit
308ade9
·
verified ·
1 Parent(s): 6908cc5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -3
README.md CHANGED
@@ -37,10 +37,11 @@ This model has been fine-tuned on [Egrigor/ValheimTestData](https://huggingface.
37
 
38
  To load and interact with the model, use the following code:
39
 
40
- from transformers import AutoModelForCausalLM, AutoTokenizer
 
41
 
42
- # Load the model and tokenizer
43
- model = AutoModelForCausalLM.from_pretrained("Egrigor/ValheimAssistantV1")
44
  tokenizer = AutoTokenizer.from_pretrained("Egrigor/ValheimAssistantV1")
45
 
46
  # Prepare input and generate output
 
37
 
38
  To load and interact with the model, use the following code:
39
 
40
+ from unsloth import FastLanguageModel
41
+ from transformers import AutoTokenizer
42
 
43
+ # Load model and tokenizer
44
+ model = FastLanguageModel.from_pretrained("Egrigor/ValheimAssistantV1")
45
  tokenizer = AutoTokenizer.from_pretrained("Egrigor/ValheimAssistantV1")
46
 
47
  # Prepare input and generate output