Stable-string commited on
Commit
6ea41df
·
1 Parent(s): 842737b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -2
README.md CHANGED
@@ -1,5 +1,5 @@
1
  这是一个基于cpm训练的模型,你可以使用这个模型来续写文章,文章大体接近于古代。
2
- 下面是一个示例:
3
  ```python
4
  import torch
5
  import torch.nn.functional as F
@@ -79,4 +79,12 @@ pip install torch==1.7.0
79
  pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ransformers==4.6.0
80
  pip install -i https://pypi.tuna.tsinghua.edu.cn/simple torch==1.7.0
81
  ```
82
- 最后运行此程序,就可以体验gpt2-zh-novel-ancient的续写功能
 
 
 
 
 
 
 
 
 
1
  这是一个基于cpm训练的模型,你可以使用这个模型来续写文章,文章大体接近于古代。
2
+ 您可以使用下面的一个示例:
3
  ```python
4
  import torch
5
  import torch.nn.functional as F
 
79
  pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ransformers==4.6.0
80
  pip install -i https://pypi.tuna.tsinghua.edu.cn/simple torch==1.7.0
81
  ```
82
+ 最后运行此程序,就可以体验gpt2-zh-novel-ancient的续写功能
83
+ 这是一些运行结果:
84
+ ```
85
+ 1.
86
+ 论天下大势,全凭道教的范蠡;论市井,他才是楚汉王公的治国大业;论乱世风云,他才是江山大太守李商隐的传世佳句。
87
+ 我想说的是天下大事,在数不清的人眼里,天下大事是不可能的。自古以来,各人为了建功立业,便开始做生意
88
+ 2.
89
+
90
+ ```