Update README.md
Browse files
README.md
CHANGED
@@ -31,18 +31,13 @@ Extensible Configuration: Leverages a custom configuration setup that can be eas
|
|
31 |
|
32 |
**How to load and call Kraken model :**
|
33 |
```
|
34 |
-
from transformers import
|
35 |
-
from configuration_kraken import KrakenConfig
|
36 |
-
from modeling_kraken import KrakenForCausalLM
|
37 |
|
38 |
-
AutoConfig.register("kraken", KrakenConfig)
|
39 |
-
AutoModelForCausalLM.register(KrakenConfig, KrakenForCausalLM)
|
40 |
|
41 |
device = "cuda:0" ## Setup "cuda:0" if NVIDIA, "mps" if on Mac
|
42 |
|
43 |
# Load the model and config:
|
44 |
-
|
45 |
-
model = AutoModelForCausalLM.from_pretrained("./kraken_model", config=config, trust_remote_code=True)
|
46 |
```
|
47 |
|
48 |
# Call the Reasoning expert:
|
|
|
31 |
|
32 |
**How to load and call Kraken model :**
|
33 |
```
|
34 |
+
from transformers import AutoModelForCausalLM
|
|
|
|
|
35 |
|
|
|
|
|
36 |
|
37 |
device = "cuda:0" ## Setup "cuda:0" if NVIDIA, "mps" if on Mac
|
38 |
|
39 |
# Load the model and config:
|
40 |
+
model = AutoModelForCausalLM.from_pretrained("./kraken_model", trust_remote_code=True)
|
|
|
41 |
```
|
42 |
|
43 |
# Call the Reasoning expert:
|