Upload README.md
Browse files
README.md
CHANGED
@@ -173,7 +173,7 @@ CT_METAL=1 pip install ctransformers>=0.2.24 --no-binary ctransformers
|
|
173 |
from ctransformers import AutoModelForCausalLM
|
174 |
|
175 |
# Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
|
176 |
-
llm = AutoModelForCausalLM.from_pretrained("TheBloke/Llama-2-13B-
|
177 |
|
178 |
print(llm("AI is going to"))
|
179 |
```
|
|
|
173 |
from ctransformers import AutoModelForCausalLM
|
174 |
|
175 |
# Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
|
176 |
+
llm = AutoModelForCausalLM.from_pretrained("TheBloke/Llama-2-13B-GGUF", model_file="llama-2-13b.q4_K_M.gguf", model_type="llama", gpu_layers=50)
|
177 |
|
178 |
print(llm("AI is going to"))
|
179 |
```
|