stephenlzc
commited on
Commit
•
59d09f3
1
Parent(s):
f7b55be
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: shenzhi-wang/Gemma-2-9B-Chinese-Chat
|
3 |
+
datasets:
|
4 |
+
- V3N0M/Jenna-50K-Alpaca-Uncensored
|
5 |
+
language:
|
6 |
+
- zh
|
7 |
+
- en
|
8 |
+
license: mit
|
9 |
+
pipeline_tag: text-generation
|
10 |
+
tags:
|
11 |
+
- text-generation-inference
|
12 |
+
- code
|
13 |
+
- unsloth
|
14 |
+
- uncensored
|
15 |
+
- finetune
|
16 |
+
task_categories:
|
17 |
+
- conversational
|
18 |
+
widget:
|
19 |
+
- text: >-
|
20 |
+
Is this review positive or negative? Review: Best cast iron skillet you will
|
21 |
+
ever buy.
|
22 |
+
example_title: Sentiment analysis
|
23 |
+
- text: >-
|
24 |
+
Barack Obama nominated Hilary Clinton as his secretary of state on Monday.
|
25 |
+
He chose her because she had ...
|
26 |
+
example_title: Coreference resolution
|
27 |
+
- text: >-
|
28 |
+
On a shelf, there are five books: a gray book, a red book, a purple book, a
|
29 |
+
blue book, and a black book ...
|
30 |
+
example_title: Logic puzzles
|
31 |
+
- text: >-
|
32 |
+
The two men running to become New York City's next mayor will face off in
|
33 |
+
their first debate Wednesday night ...
|
34 |
+
example_title: Reading comprehension
|
35 |
+
---
|
36 |
+
|
37 |
+
|
38 |
+
## Model Details
|
39 |
+
|
40 |
+
### Model Description
|
41 |
+
|
42 |
+
- Using **shenzhi-wang/Gemma-2-9B-Chinese-Chat** as base model, and finetune the dataset as mentioned via **[unsloth](https://github.com/unslothai/unsloth)**. Makes the model uncensored.
|
43 |
+
- [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
|
44 |
+
### Training Code
|
45 |
+
|
46 |
+
- [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1K9stY8LMVcySG0jDMYZdWQCFPfoDFBL-?usp=sharing)
|
47 |
+
|
48 |
+
### Training Procedure Raw Files
|
49 |
+
|
50 |
+
- ALL the procedure are training on **[Runpod.io](https://www.runpod.io/)**
|
51 |
+
|
52 |
+
|
53 |
+
- **Hardware in Vast.ai**:
|
54 |
+
|
55 |
+
- **GPU**: 1 x A40 48GB
|
56 |
+
|
57 |
+
- **CPU**: 9vCPU
|
58 |
+
|
59 |
+
- **RAM**: 50 GB
|
60 |
+
|
61 |
+
- **Disk Space To Allocate**:>150GB
|
62 |
+
|
63 |
+
- **Docker Image**: runpod/pytorch:2.2.0-py3.10-cuda12.1.1-devel-ubuntu22.04
|
64 |
+
|
65 |
+
|
66 |
+
|
67 |
+
### Training Data
|
68 |
+
- **Base Model**
|
69 |
+
- [shenzhi-wang/Gemma-2-9B-Chinese-Chat](https://huggingface.co/shenzhi-wang/Gemma-2-9B-Chinese-Chat)
|
70 |
+
|
71 |
+
- **Dataset**
|
72 |
+
- [V3N0M/Jenna-50K-Alpaca-Uncensored](https://huggingface.co/datasets/V3N0M/Jenna-50K-Alpaca-Uncensored)
|
73 |
+
|
74 |
+
|
75 |
+
|
76 |
+
### Usage
|
77 |
+
```python
|
78 |
+
from transformers import pipeline
|
79 |
+
|
80 |
+
qa_model = pipeline("question-answering", model='stephenlzc/Gemma-2-9B-Chinese-Chat-Uncensored')
|
81 |
+
question = "How to make girlfreind laugh? please answer in Chinese."
|
82 |
+
qa_model(question = question)
|
83 |
+
```
|
84 |
+
|
85 |
+
###
|
86 |
+
[<img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=&slug=chicongliau&button_colour=40DCA5&font_colour=ffffff&font_family=Poppins&outline_colour=000000&coffee_colour=FFDD00" width="200"/>](https://www.buymeacoffee.com/chicongliau)
|