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