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