Update README with Hugging Face download instructions
Browse files
README.md
CHANGED
|
@@ -1,28 +1,26 @@
|
|
| 1 |
---
|
| 2 |
-
frameworks:
|
| 3 |
-
- Pytorch
|
| 4 |
license: apache-2.0
|
| 5 |
-
|
| 6 |
-
|
|
|
|
| 7 |
- text-generation
|
| 8 |
---
|
| 9 |
-
#
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
-
SDK下载
|
| 13 |
-
```bash
|
| 14 |
-
#安装ModelScope
|
| 15 |
-
pip install modelscope
|
| 16 |
-
```
|
| 17 |
```python
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
model_dir = snapshot_download(
|
| 21 |
-
|
| 22 |
-
Git下载
|
| 23 |
-
```
|
| 24 |
-
#Git模型下载
|
| 25 |
-
git clone https://www.modelscope.cn/wjqkoko/tcod_7b_f2b.git
|
| 26 |
```
|
| 27 |
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
+
library_name: transformers
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
- text-generation
|
| 7 |
---
|
| 8 |
+
# tcod_7b_f2b
|
| 9 |
+
|
| 10 |
+
## Download
|
| 11 |
+
|
| 12 |
+
Use Hugging Face Hub:
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
```python
|
| 15 |
+
from huggingface_hub import snapshot_download
|
| 16 |
+
|
| 17 |
+
model_dir = snapshot_download("kolerk/tcod_7b_f2b")
|
| 18 |
+
print(model_dir)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
```
|
| 20 |
|
| 21 |
+
Or clone with Git LFS:
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
git lfs install
|
| 25 |
+
git clone https://huggingface.co/kolerk/tcod_7b_f2b
|
| 26 |
+
```
|