Spaces:
Runtime error
Runtime error
Update TheBloke/zephyr-7B-alpha-GGUF/zephyr-7b-alpha.Q4_K_M.gguf
Browse files
TheBloke/zephyr-7B-alpha-GGUF/zephyr-7b-alpha.Q4_K_M.gguf
CHANGED
@@ -1,3 +1,9 @@
|
|
1 |
# Load model directly
|
2 |
-
from transformers import
|
3 |
-
model =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# Load model directly
|
2 |
+
from transformers import AutoModelForCausalLM
|
3 |
+
model = AutoModelForCausalLM(
|
4 |
+
model_path="TheBloke/zephyr-7B-alpha-GGUF",
|
5 |
+
model_file="zephyr-7b-alpha.Q4_K_M.gguf",
|
6 |
+
model_type="llama"
|
7 |
+
)
|
8 |
+
|
9 |
+
print(model.generate("Hello!"))
|