Tinkabellaa commited on
Commit
3bba42b
·
verified ·
1 Parent(s): e385dc6

Create model. Load

Browse files
Files changed (1) hide show
  1. Model.load +5 -0
Model.load ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Load model directly
2
+ from transformers import AutoTokenizer, AutoModelForCausalLM
3
+
4
+ tokenizer = AutoTokenizer.from_pretrained("KoboldAI/OPT-2.7B-Erebus")
5
+ model = AutoModelForCausalLM.from_pretrained("KoboldAI/OPT-2.7B-Erebus")