DavidGF commited on
Commit
c3e65c3
1 Parent(s): b19a9f8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -7
README.md CHANGED
@@ -39,18 +39,14 @@ Extensible Configuration: Leverages a custom configuration setup that can be eas
39
 
40
  **How to load and call Kraken-Multilingual model :**
41
  ```
42
- from transformers import AutoConfig, AutoModelForCausalLM
43
- from configuration_kraken import KrakenConfig
44
- from modeling_kraken import KrakenForCausalLM
45
 
46
- AutoConfig.register("kraken", KrakenConfig)
47
- AutoModelForCausalLM.register(KrakenConfig, KrakenForCausalLM)
48
 
49
  device = "cuda:0" ## Setup "cuda:0" if NVIDIA, "mps" if on Mac
50
 
51
  # Load the model and config:
52
- config = AutoConfig.from_pretrained("./kraken_model")
53
- model = AutoModelForCausalLM.from_pretrained("./kraken_model", config=config, trust_remote_code=True)
54
  ```
55
 
56
  # Call the German expert:
 
39
 
40
  **How to load and call Kraken-Multilingual model :**
41
  ```
42
+ from transformers import AutoModelForCausalLM
43
+
 
44
 
 
 
45
 
46
  device = "cuda:0" ## Setup "cuda:0" if NVIDIA, "mps" if on Mac
47
 
48
  # Load the model and config:
49
+ model = AutoModelForCausalLM.from_pretrained("./kraken_model", trust_remote_code=True)
 
50
  ```
51
 
52
  # Call the German expert: