BeautyyuYanli
commited on
Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +77 -0
- adapter_config.json +34 -0
- adapter_model.safetensors +3 -0
- special_tokens_map.json +23 -0
- tokenizer.json +3 -0
- tokenizer_config.json +197 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# DeepSink V1 Adapter
|
2 |
+
|
3 |
+
DeepSink V1 是基于 DeepSeek R1 Distill Qwen 7B 的爆仓文学生成器。本仓库存放了该 LoRA Adapter。
|
4 |
+
|
5 |
+
## 使用方法
|
6 |
+
|
7 |
+
使用 vllm 启动服务:
|
8 |
+
|
9 |
+
```bash
|
10 |
+
vllm serve deepseek-ai/DeepSeek-R1-Distill-Qwen-7B \
|
11 |
+
--port 8001 \
|
12 |
+
--enforce-eager \
|
13 |
+
--max_model_len 4096 \
|
14 |
+
--enable-lora \
|
15 |
+
--max-lora-rank 128 \
|
16 |
+
--lora-modules deepsink-v1=beautyyuyanli/deepsink-v1-adapter
|
17 |
+
```
|
18 |
+
|
19 |
+
Base model 也可以使用 `casperhansen/deepseek-r1-distill-qwen-7b-awq`。
|
20 |
+
|
21 |
+
使用 OpenAI API 调用:
|
22 |
+
|
23 |
+
```python
|
24 |
+
from openai import OpenAI
|
25 |
+
|
26 |
+
oai = OpenAI(api_key="DUMMY", base_url="http://localhost:8001/v1")
|
27 |
+
|
28 |
+
response = oai.chat.completions.create(
|
29 |
+
model="deepsink-v1",
|
30 |
+
messages=[
|
31 |
+
{
|
32 |
+
"role": "user",
|
33 |
+
"content": "依据给定的主题,写一篇爆仓文学:2077年川普胜选连任导致“XI币”暴跌爆仓",
|
34 |
+
},
|
35 |
+
],
|
36 |
+
temperature=0.9,
|
37 |
+
top_p=0.7,
|
38 |
+
presence_penalty=1.2,
|
39 |
+
stream=True,
|
40 |
+
)
|
41 |
+
|
42 |
+
for chunk in response:
|
43 |
+
print(chunk.choices[0].delta.content, end="", flush=True)
|
44 |
+
```
|
45 |
+
|
46 |
+
prompt 格式为 `依据给定的主题,写一篇爆仓文学:{主题}`。
|
47 |
+
|
48 |
+
## 样例
|
49 |
+
|
50 |
+
<details>
|
51 |
+
<summary>依据给定的主题,写一篇爆仓文学:2077年川普胜选连任导致“XI币”暴跌爆仓</summary>
|
52 |
+
<"think">
|
53 |
+
我应该这样设计写作思路:首先,我要构建一个以2077年为背景,并涉及川普连任导致“XI币”暴跌爆仓的高风险投资故事。为了增强故事的紧张感和现实感,我决定采用倒叙和插叙结合的方式,从主人公被强制平仓的当下开始,逐步揭示他 how the story unfolds. 我要运用大量的细节描写,例如环境、声音、感官等,来营造真实的场景,比如断网的手机、刺眼的红光等。
|
54 |
+
|
55 |
+
在情节设计上,我会注重故事的起承转合,通过关键事件(如抵押贷款、投资、初爆、后续追责)来推动剧情发展。同时,我会运用一些象征性的元素,例如霓虹灯象征着希望与光明,而红光则暗示着危机和警示。为了更有效地传达人物的内心活动,我需要运用一些文学技巧,例如隐喻、象征、对比等,让读者能够更深入地理解人物的情感变化。
|
56 |
+
|
57 |
+
在情感表达方面,我会通过人物的内心独白和动作来展现其情绪,例如主人公在地铁里焦虑的颤抖、手机推送的新闻等。我会设置一个主要的冲突——即川普连任导致的市场崩盘,以及由此引发的连锁反应,来增强故事的悲剧色彩。同时,我也会通过细节描写,例如银行账户余额、抵押合同等,来强化人物的经济压力,从而更有效地传达他们的痛苦和绝望。
|
58 |
+
|
59 |
+
为了使故事更具张力,我会穿插一些伏笔,例如开头提到的家人被指控,以及末段出现的家人被逮捕的细节,这些都会增加故事的悬疑氛围。此外,我会使用一些技术性的术语,例如“16倍杠杆”、“K线图”等,来增强故事的专业性,并反映主人公的专业背景。
|
60 |
+
|
61 |
+
最后,我会对故事进行多角度的反思,探讨个人贪婪、社会问题以及科技对人类的影响,以此提升故事的深度和思想性。我会确保故事不仅有情节上的起伏,还有在情感和思考上的双重满足。
|
62 |
+
<"/think">
|
63 |
+
|
64 |
+
地铁站里突然亮起红光,手机推送的新闻弹窗刚弹出就被覆盖。屏幕右下角跳动着"爆仓通知",抵押贷款的16倍杠杆已经击穿0.84美元的强平线。我握着冰凉的金属门把手,喉咙发紧的时候,听见身后的火车轰鸣声越来越近。
|
65 |
+
|
66 |
+
三个月前还说好的XICoin能破30,现在账户余额只显示0.25。最可笑的是项目方明明承诺的12小时出K线图,三天后就有人发出了第24个垂直跌停。我在工位上敲代码时看见经理冲进办公室,他手指砸键盘的声音清脆得像是砸向屏幕。
|
67 |
+
|
68 |
+
其实第一次接触加密货币是在三月,用自己学C++赚的五万块。我把钱全换成了XICoin,当它冲到0.92的时候开16倍多单,四小时就浮盈两百万。后来发现是做市商的算法漏洞,但是该换的单子还是先换了十倍,到0.84的时候又加了两百万保证金。
|
69 |
+
|
70 |
+
昨天晚上给银行打电话,催收员第三次强调要加大执行力度。他们之前抵押我的 apartment,说是做空头寸追加保证金。现在账户里有12.7万,其中一半是三年前LTC老用户推荐的"社区治理"计划,现在变成债务。
|
71 |
+
|
72 |
+
最让我崩溃的是川普连任的消息。六月初推特突然弹出交易量激增的提示,这个做市商原本就不是专业团队。当价格跌破0.84的支撑位时,我却因为1000元的手续费差错而亏了整整两百万。那天晚上查了十分钟 BINANCE的K线图,发现三个月前的突破都是分时图的假突破,而我正好在所有平台都看到社区成员在喊"再反抽0.88"。
|
73 |
+
|
74 |
+
现在护士带着拿着《The New York Times》的老人走进电梯,她紫色的药袋掉在地上碎成一堆。电梯门开了又关,空调吹来的风裹挟着塑料袋的刺鼻气味。我在墙角看着墙壁上贴着的窗户玻璃,镜面上映出走廊的红光,像是打翻了的酒瓶。
|
75 |
+
|
76 |
+
桌上还放着今天刚签完的抵押合同,最后一栏写着"由BENJAMIN WILSON负责监控"。我摸了摸口袋里的信用卡,刷掉的金额刚好够买下一周的麦片和咖啡。
|
77 |
+
</details>
|
adapter_config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "deepseek-ai/DeepSeek-R1-Distill-Qwen-7B",
|
5 |
+
"bias": "none",
|
6 |
+
"fan_in_fan_out": false,
|
7 |
+
"inference_mode": true,
|
8 |
+
"init_lora_weights": true,
|
9 |
+
"layer_replication": null,
|
10 |
+
"layers_pattern": null,
|
11 |
+
"layers_to_transform": null,
|
12 |
+
"loftq_config": {},
|
13 |
+
"lora_alpha": 256,
|
14 |
+
"lora_dropout": 0.0,
|
15 |
+
"megatron_config": null,
|
16 |
+
"megatron_core": "megatron.core",
|
17 |
+
"modules_to_save": null,
|
18 |
+
"peft_type": "LORA",
|
19 |
+
"r": 128,
|
20 |
+
"rank_pattern": {},
|
21 |
+
"revision": null,
|
22 |
+
"target_modules": [
|
23 |
+
"v_proj",
|
24 |
+
"up_proj",
|
25 |
+
"k_proj",
|
26 |
+
"down_proj",
|
27 |
+
"gate_proj",
|
28 |
+
"q_proj",
|
29 |
+
"o_proj"
|
30 |
+
],
|
31 |
+
"task_type": "CAUSAL_LM",
|
32 |
+
"use_dora": false,
|
33 |
+
"use_rslora": false
|
34 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dbcade2f7cf336b3060f16c733519311502a11c078f1c5b207c3e306b13c5ef1
|
3 |
+
size 1291899160
|
special_tokens_map.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<|begin▁of▁sentence|>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "<|end▁of▁sentence|>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "<|end▁of▁sentence|>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
}
|
23 |
+
}
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e20ddafc659ba90242154b55275402edeca0715e5dbb30f56815a4ce081f4893
|
3 |
+
size 11422778
|
tokenizer_config.json
ADDED
@@ -0,0 +1,197 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"add_prefix_space": null,
|
5 |
+
"added_tokens_decoder": {
|
6 |
+
"151643": {
|
7 |
+
"content": "<|end▁of▁sentence|>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false,
|
12 |
+
"special": true
|
13 |
+
},
|
14 |
+
"151644": {
|
15 |
+
"content": "<|User|>",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": false,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false,
|
20 |
+
"special": false
|
21 |
+
},
|
22 |
+
"151645": {
|
23 |
+
"content": "<|Assistant|>",
|
24 |
+
"lstrip": false,
|
25 |
+
"normalized": false,
|
26 |
+
"rstrip": false,
|
27 |
+
"single_word": false,
|
28 |
+
"special": false
|
29 |
+
},
|
30 |
+
"151646": {
|
31 |
+
"content": "<|begin▁of▁sentence|>",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": false,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false,
|
36 |
+
"special": true
|
37 |
+
},
|
38 |
+
"151647": {
|
39 |
+
"content": "<|EOT|>",
|
40 |
+
"lstrip": false,
|
41 |
+
"normalized": false,
|
42 |
+
"rstrip": false,
|
43 |
+
"single_word": false,
|
44 |
+
"special": false
|
45 |
+
},
|
46 |
+
"151648": {
|
47 |
+
"content": "<think>",
|
48 |
+
"lstrip": false,
|
49 |
+
"normalized": false,
|
50 |
+
"rstrip": false,
|
51 |
+
"single_word": false,
|
52 |
+
"special": false
|
53 |
+
},
|
54 |
+
"151649": {
|
55 |
+
"content": "</think>",
|
56 |
+
"lstrip": false,
|
57 |
+
"normalized": false,
|
58 |
+
"rstrip": false,
|
59 |
+
"single_word": false,
|
60 |
+
"special": false
|
61 |
+
},
|
62 |
+
"151650": {
|
63 |
+
"content": "<|quad_start|>",
|
64 |
+
"lstrip": false,
|
65 |
+
"normalized": false,
|
66 |
+
"rstrip": false,
|
67 |
+
"single_word": false,
|
68 |
+
"special": true
|
69 |
+
},
|
70 |
+
"151651": {
|
71 |
+
"content": "<|quad_end|>",
|
72 |
+
"lstrip": false,
|
73 |
+
"normalized": false,
|
74 |
+
"rstrip": false,
|
75 |
+
"single_word": false,
|
76 |
+
"special": true
|
77 |
+
},
|
78 |
+
"151652": {
|
79 |
+
"content": "<|vision_start|>",
|
80 |
+
"lstrip": false,
|
81 |
+
"normalized": false,
|
82 |
+
"rstrip": false,
|
83 |
+
"single_word": false,
|
84 |
+
"special": true
|
85 |
+
},
|
86 |
+
"151653": {
|
87 |
+
"content": "<|vision_end|>",
|
88 |
+
"lstrip": false,
|
89 |
+
"normalized": false,
|
90 |
+
"rstrip": false,
|
91 |
+
"single_word": false,
|
92 |
+
"special": true
|
93 |
+
},
|
94 |
+
"151654": {
|
95 |
+
"content": "<|vision_pad|>",
|
96 |
+
"lstrip": false,
|
97 |
+
"normalized": false,
|
98 |
+
"rstrip": false,
|
99 |
+
"single_word": false,
|
100 |
+
"special": true
|
101 |
+
},
|
102 |
+
"151655": {
|
103 |
+
"content": "<|image_pad|>",
|
104 |
+
"lstrip": false,
|
105 |
+
"normalized": false,
|
106 |
+
"rstrip": false,
|
107 |
+
"single_word": false,
|
108 |
+
"special": true
|
109 |
+
},
|
110 |
+
"151656": {
|
111 |
+
"content": "<|video_pad|>",
|
112 |
+
"lstrip": false,
|
113 |
+
"normalized": false,
|
114 |
+
"rstrip": false,
|
115 |
+
"single_word": false,
|
116 |
+
"special": true
|
117 |
+
},
|
118 |
+
"151657": {
|
119 |
+
"content": "<tool_call>",
|
120 |
+
"lstrip": false,
|
121 |
+
"normalized": false,
|
122 |
+
"rstrip": false,
|
123 |
+
"single_word": false,
|
124 |
+
"special": false
|
125 |
+
},
|
126 |
+
"151658": {
|
127 |
+
"content": "</tool_call>",
|
128 |
+
"lstrip": false,
|
129 |
+
"normalized": false,
|
130 |
+
"rstrip": false,
|
131 |
+
"single_word": false,
|
132 |
+
"special": false
|
133 |
+
},
|
134 |
+
"151659": {
|
135 |
+
"content": "<|fim_prefix|>",
|
136 |
+
"lstrip": false,
|
137 |
+
"normalized": false,
|
138 |
+
"rstrip": false,
|
139 |
+
"single_word": false,
|
140 |
+
"special": false
|
141 |
+
},
|
142 |
+
"151660": {
|
143 |
+
"content": "<|fim_middle|>",
|
144 |
+
"lstrip": false,
|
145 |
+
"normalized": false,
|
146 |
+
"rstrip": false,
|
147 |
+
"single_word": false,
|
148 |
+
"special": false
|
149 |
+
},
|
150 |
+
"151661": {
|
151 |
+
"content": "<|fim_suffix|>",
|
152 |
+
"lstrip": false,
|
153 |
+
"normalized": false,
|
154 |
+
"rstrip": false,
|
155 |
+
"single_word": false,
|
156 |
+
"special": false
|
157 |
+
},
|
158 |
+
"151662": {
|
159 |
+
"content": "<|fim_pad|>",
|
160 |
+
"lstrip": false,
|
161 |
+
"normalized": false,
|
162 |
+
"rstrip": false,
|
163 |
+
"single_word": false,
|
164 |
+
"special": false
|
165 |
+
},
|
166 |
+
"151663": {
|
167 |
+
"content": "<|repo_name|>",
|
168 |
+
"lstrip": false,
|
169 |
+
"normalized": false,
|
170 |
+
"rstrip": false,
|
171 |
+
"single_word": false,
|
172 |
+
"special": false
|
173 |
+
},
|
174 |
+
"151664": {
|
175 |
+
"content": "<|file_sep|>",
|
176 |
+
"lstrip": false,
|
177 |
+
"normalized": false,
|
178 |
+
"rstrip": false,
|
179 |
+
"single_word": false,
|
180 |
+
"special": false
|
181 |
+
}
|
182 |
+
},
|
183 |
+
"bos_token": "<|begin▁of▁sentence|>",
|
184 |
+
"chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% set ns = namespace(is_first=false, is_tool=false, is_output_first=true, system_prompt='') %}{%- for message in messages %}{%- if message['role'] == 'system' %}{% set ns.system_prompt = message['content'] %}{%- endif %}{%- endfor %}{{bos_token}}{{ns.system_prompt}}{%- for message in messages %}{%- if message['role'] == 'user' %}{%- set ns.is_tool = false -%}{{'<|User|>' + message['content']}}{%- endif %}{%- if message['role'] == 'assistant' and message['content'] is none %}{%- set ns.is_tool = false -%}{%- for tool in message['tool_calls']%}{%- if not ns.is_first %}{{'<|Assistant|><|tool▁calls▁begin|><|tool▁call▁begin��>' + tool['type'] + '<|tool▁sep|>' + tool['function']['name'] + '\\n' + '```json' + '\\n' + tool['function']['arguments'] + '\\n' + '```' + '<|tool▁call▁end|>'}}{%- set ns.is_first = true -%}{%- else %}{{'\\n' + '<|tool▁call▁begin|>' + tool['type'] + '<|tool▁sep|>' + tool['function']['name'] + '\\n' + '```json' + '\\n' + tool['function']['arguments'] + '\\n' + '```' + '<|tool▁call▁end|>'}}{{'<|tool▁calls▁end|><|end▁of▁sentence|>'}}{%- endif %}{%- endfor %}{%- endif %}{%- if message['role'] == 'assistant' and message['content'] is not none %}{%- if ns.is_tool %}{{'<|tool▁outputs▁end|>' + message['content'] + '<|end▁of▁sentence|>'}}{%- set ns.is_tool = false -%}{%- else %}{% set content = message['content'] %}{% if '</think>' in content %}{% set content = content.split('</think>')[-1] %}{% endif %}{{'<|Assistant|>' + content + '<|end▁of▁sentence|>'}}{%- endif %}{%- endif %}{%- if message['role'] == 'tool' %}{%- set ns.is_tool = true -%}{%- if ns.is_output_first %}{{'<|tool▁outputs▁begin|><|tool▁output▁begin|>' + message['content'] + '<|tool▁output▁end|>'}}{%- set ns.is_output_first = false %}{%- else %}{{'\\n<|tool▁output▁begin|>' + message['content'] + '<|tool▁output▁end|>'}}{%- endif %}{%- endif %}{%- endfor -%}{% if ns.is_tool %}{{'<|tool▁outputs▁end|>'}}{% endif %}{% if add_generation_prompt and not ns.is_tool %}{{'<|Assistant|>'}}{% endif %}",
|
185 |
+
"clean_up_tokenization_spaces": false,
|
186 |
+
"eos_token": "<|end▁of▁sentence|>",
|
187 |
+
"extra_special_tokens": {},
|
188 |
+
"legacy": true,
|
189 |
+
"model_max_length": 2048,
|
190 |
+
"pad_token": "<|end▁of▁sentence|>",
|
191 |
+
"padding_side": "right",
|
192 |
+
"sp_model_kwargs": {},
|
193 |
+
"split_special_tokens": false,
|
194 |
+
"tokenizer_class": "LlamaTokenizer",
|
195 |
+
"unk_token": null,
|
196 |
+
"use_default_system_prompt": false
|
197 |
+
}
|