Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
# For reference on model card metadata, see the spec: https://github.com/huggingface/hub-docs/blob/main/modelcard.md?plain=1
|
3 |
+
# Doc / guide: https://huggingface.co/docs/hub/model-cards
|
4 |
+
{}
|
5 |
+
---
|
6 |
+
|
7 |
+
# Model Card for Model ID
|
8 |
+
|
9 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
10 |
+
|
11 |
+
This modelcard aims to be a base template for new models. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md?plain=1).
|
12 |
+
|
13 |
+
## Model Details
|
14 |
+
|
15 |
+
### Model Description
|
16 |
+
|
17 |
+
<!-- Provide a longer summary of what this model is. -->
|
18 |
+
|
19 |
+
- **Developed by:** 知未智能KDF
|
20 |
+
- **Model type:** JIANG
|
21 |
+
- **Language(s) (NLP):** Chinese
|
22 |
+
- **License:** Reasearch only (because using other Reasearch-Only SFT datasets)
|
23 |
+
- **Finetuned from model [optional]:** https://huggingface.co/kdf/jiang-base
|
24 |
+
|
25 |
+
## How to Get Started with the Model
|
26 |
+
|
27 |
+
Use the code below to get started with the model.
|
28 |
+
|
29 |
+
```python
|
30 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
31 |
+
|
32 |
+
model_id = 'kdf/jiang-chat'
|
33 |
+
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True)
|
34 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
35 |
+
ret = model.generate(**tokenizer('<|unused52|>写首诗<|unused53|><|unused54|>', return_tensors='pt'), max_new_tokens=50, top_k=1)
|
36 |
+
print(tokenizer.decode(ret[0]))
|
37 |
+
```
|