Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
library_name: transformers
|
5 |
+
pipeline_tag: text-generation
|
6 |
+
---
|
7 |
+
# GenZ 13B v2 GGML
|
8 |
+
|
9 |
+
The instruction finetuned model with 4K input length. The model is finetuned on top of pretrained LLaMa2
|
10 |
+
|
11 |
+
|
12 |
+
## Inference
|
13 |
+
|
14 |
+
```python
|
15 |
+
import ctransformers
|
16 |
+
from ctransformers import AutoModelForCausalLM
|
17 |
+
|
18 |
+
|
19 |
+
model = AutoModelForCausalLM.from_pretrained('/path/to/ggml-model-q4_0.bin', model_type="llama")
|
20 |
+
|
21 |
+
prompt = """A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
|
22 |
+
USER: who are you? ASSISTANT: """
|
23 |
+
print(model(prompt))
|
24 |
+
```
|
25 |
+
Support [LM Studio](https://lmstudio.ai/) for Mac & Windows users
|
26 |
+
|
27 |
+
Use following prompt template
|
28 |
+
|
29 |
+
```
|
30 |
+
A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: Hi, how are you? ASSISTANT:
|
31 |
+
```
|
32 |
+
|
33 |
+
Check the GitHub for the code -> [GenZ](https://github.com/BudEcosystem/GenZ)
|