Upload README.md
Browse files
README.md
ADDED
@@ -0,0 +1,400 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: TriadParty/deepmoney-34b-200k-base
|
3 |
+
inference: false
|
4 |
+
language:
|
5 |
+
- en
|
6 |
+
- zh
|
7 |
+
license: apache-2.0
|
8 |
+
model_creator: triad party
|
9 |
+
model_name: Deepmoney 34B 200K Base
|
10 |
+
model_type: yi
|
11 |
+
prompt_template: '{prompt}
|
12 |
+
|
13 |
+
'
|
14 |
+
quantized_by: TheBloke
|
15 |
+
tags:
|
16 |
+
- finance
|
17 |
+
- invest
|
18 |
+
---
|
19 |
+
<!-- markdownlint-disable MD041 -->
|
20 |
+
|
21 |
+
<!-- header start -->
|
22 |
+
<!-- 200823 -->
|
23 |
+
<div style="width: auto; margin-left: auto; margin-right: auto">
|
24 |
+
<img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
25 |
+
</div>
|
26 |
+
<div style="display: flex; justify-content: space-between; width: 100%;">
|
27 |
+
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
28 |
+
<p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
|
29 |
+
</div>
|
30 |
+
<div style="display: flex; flex-direction: column; align-items: flex-end;">
|
31 |
+
<p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
|
32 |
+
</div>
|
33 |
+
</div>
|
34 |
+
<div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div>
|
35 |
+
<hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
|
36 |
+
<!-- header end -->
|
37 |
+
|
38 |
+
# Deepmoney 34B 200K Base - AWQ
|
39 |
+
- Model creator: [triad party](https://huggingface.co/TriadParty)
|
40 |
+
- Original model: [Deepmoney 34B 200K Base](https://huggingface.co/TriadParty/deepmoney-34b-200k-base)
|
41 |
+
|
42 |
+
<!-- description start -->
|
43 |
+
## Description
|
44 |
+
|
45 |
+
This repo contains AWQ model files for [triad party's Deepmoney 34B 200K Base](https://huggingface.co/TriadParty/deepmoney-34b-200k-base).
|
46 |
+
|
47 |
+
These files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/).
|
48 |
+
|
49 |
+
|
50 |
+
### About AWQ
|
51 |
+
|
52 |
+
AWQ is an efficient, accurate and blazing-fast low-bit weight quantization method, currently supporting 4-bit quantization. Compared to GPTQ, it offers faster Transformers-based inference with equivalent or better quality compared to the most commonly used GPTQ settings.
|
53 |
+
|
54 |
+
AWQ models are currently supported on Linux and Windows, with NVidia GPUs only. macOS users: please use GGUF models instead.
|
55 |
+
|
56 |
+
It is supported by:
|
57 |
+
|
58 |
+
- [Text Generation Webui](https://github.com/oobabooga/text-generation-webui) - using Loader: AutoAWQ
|
59 |
+
- [vLLM](https://github.com/vllm-project/vllm) - version 0.2.2 or later for support for all model types.
|
60 |
+
- [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
|
61 |
+
- [Transformers](https://huggingface.co/docs/transformers) version 4.35.0 and later, from any code or client that supports Transformers
|
62 |
+
- [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) - for use from Python code
|
63 |
+
|
64 |
+
<!-- description end -->
|
65 |
+
<!-- repositories-available start -->
|
66 |
+
## Repositories available
|
67 |
+
|
68 |
+
* [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/deepmoney-34b-200k-base-AWQ)
|
69 |
+
* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/deepmoney-34b-200k-base-GPTQ)
|
70 |
+
* [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/deepmoney-34b-200k-base-GGUF)
|
71 |
+
* [triad party's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/TriadParty/deepmoney-34b-200k-base)
|
72 |
+
<!-- repositories-available end -->
|
73 |
+
|
74 |
+
<!-- prompt-template start -->
|
75 |
+
## Prompt template: None
|
76 |
+
|
77 |
+
```
|
78 |
+
{prompt}
|
79 |
+
|
80 |
+
```
|
81 |
+
|
82 |
+
<!-- prompt-template end -->
|
83 |
+
|
84 |
+
|
85 |
+
<!-- README_AWQ.md-provided-files start -->
|
86 |
+
## Provided files, and AWQ parameters
|
87 |
+
|
88 |
+
I currently release 128g GEMM models only. The addition of group_size 32 models, and GEMV kernel models, is being actively considered.
|
89 |
+
|
90 |
+
Models are released as sharded safetensors files.
|
91 |
+
|
92 |
+
| Branch | Bits | GS | AWQ Dataset | Seq Len | Size |
|
93 |
+
| ------ | ---- | -- | ----------- | ------- | ---- |
|
94 |
+
| [main](https://huggingface.co/TheBloke/deepmoney-34b-200k-base-AWQ/tree/main) | 4 | 128 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 19.23 GB
|
95 |
+
|
96 |
+
<!-- README_AWQ.md-provided-files end -->
|
97 |
+
|
98 |
+
<!-- README_AWQ.md-text-generation-webui start -->
|
99 |
+
## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
|
100 |
+
|
101 |
+
Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
|
102 |
+
|
103 |
+
It is strongly recommended to use the text-generation-webui one-click-installers unless you're sure you know how to make a manual install.
|
104 |
+
|
105 |
+
1. Click the **Model tab**.
|
106 |
+
2. Under **Download custom model or LoRA**, enter `TheBloke/deepmoney-34b-200k-base-AWQ`.
|
107 |
+
3. Click **Download**.
|
108 |
+
4. The model will start downloading. Once it's finished it will say "Done".
|
109 |
+
5. In the top left, click the refresh icon next to **Model**.
|
110 |
+
6. In the **Model** dropdown, choose the model you just downloaded: `deepmoney-34b-200k-base-AWQ`
|
111 |
+
7. Select **Loader: AutoAWQ**.
|
112 |
+
8. Click Load, and the model will load and is now ready for use.
|
113 |
+
9. If you want any custom settings, set them and then click **Save settings for this model** followed by **Reload the Model** in the top right.
|
114 |
+
10. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
|
115 |
+
<!-- README_AWQ.md-text-generation-webui end -->
|
116 |
+
|
117 |
+
<!-- README_AWQ.md-use-from-vllm start -->
|
118 |
+
## Multi-user inference server: vLLM
|
119 |
+
|
120 |
+
Documentation on installing and using vLLM [can be found here](https://vllm.readthedocs.io/en/latest/).
|
121 |
+
|
122 |
+
- Please ensure you are using vLLM version 0.2 or later.
|
123 |
+
- When using vLLM as a server, pass the `--quantization awq` parameter.
|
124 |
+
|
125 |
+
For example:
|
126 |
+
|
127 |
+
```shell
|
128 |
+
python3 -m vllm.entrypoints.api_server --model TheBloke/deepmoney-34b-200k-base-AWQ --quantization awq --dtype auto
|
129 |
+
```
|
130 |
+
|
131 |
+
- When using vLLM from Python code, again set `quantization=awq`.
|
132 |
+
|
133 |
+
For example:
|
134 |
+
|
135 |
+
```python
|
136 |
+
from vllm import LLM, SamplingParams
|
137 |
+
|
138 |
+
prompts = [
|
139 |
+
"Tell me about AI",
|
140 |
+
"Write a story about llamas",
|
141 |
+
"What is 291 - 150?",
|
142 |
+
"How much wood would a woodchuck chuck if a woodchuck could chuck wood?",
|
143 |
+
]
|
144 |
+
prompt_template=f'''{prompt}
|
145 |
+
'''
|
146 |
+
|
147 |
+
prompts = [prompt_template.format(prompt=prompt) for prompt in prompts]
|
148 |
+
|
149 |
+
sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
|
150 |
+
|
151 |
+
llm = LLM(model="TheBloke/deepmoney-34b-200k-base-AWQ", quantization="awq", dtype="auto")
|
152 |
+
|
153 |
+
outputs = llm.generate(prompts, sampling_params)
|
154 |
+
|
155 |
+
# Print the outputs.
|
156 |
+
for output in outputs:
|
157 |
+
prompt = output.prompt
|
158 |
+
generated_text = output.outputs[0].text
|
159 |
+
print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
|
160 |
+
```
|
161 |
+
<!-- README_AWQ.md-use-from-vllm start -->
|
162 |
+
|
163 |
+
<!-- README_AWQ.md-use-from-tgi start -->
|
164 |
+
## Multi-user inference server: Hugging Face Text Generation Inference (TGI)
|
165 |
+
|
166 |
+
Use TGI version 1.1.0 or later. The official Docker container is: `ghcr.io/huggingface/text-generation-inference:1.1.0`
|
167 |
+
|
168 |
+
Example Docker parameters:
|
169 |
+
|
170 |
+
```shell
|
171 |
+
--model-id TheBloke/deepmoney-34b-200k-base-AWQ --port 3000 --quantize awq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
|
172 |
+
```
|
173 |
+
|
174 |
+
Example Python code for interfacing with TGI (requires [huggingface-hub](https://github.com/huggingface/huggingface_hub) 0.17.0 or later):
|
175 |
+
|
176 |
+
```shell
|
177 |
+
pip3 install huggingface-hub
|
178 |
+
```
|
179 |
+
|
180 |
+
```python
|
181 |
+
from huggingface_hub import InferenceClient
|
182 |
+
|
183 |
+
endpoint_url = "https://your-endpoint-url-here"
|
184 |
+
|
185 |
+
prompt = "Tell me about AI"
|
186 |
+
prompt_template=f'''{prompt}
|
187 |
+
'''
|
188 |
+
|
189 |
+
client = InferenceClient(endpoint_url)
|
190 |
+
response = client.text_generation(prompt,
|
191 |
+
max_new_tokens=128,
|
192 |
+
do_sample=True,
|
193 |
+
temperature=0.7,
|
194 |
+
top_p=0.95,
|
195 |
+
top_k=40,
|
196 |
+
repetition_penalty=1.1)
|
197 |
+
|
198 |
+
print(f"Model output: ", response)
|
199 |
+
```
|
200 |
+
<!-- README_AWQ.md-use-from-tgi end -->
|
201 |
+
|
202 |
+
<!-- README_AWQ.md-use-from-python start -->
|
203 |
+
## Inference from Python code using Transformers
|
204 |
+
|
205 |
+
### Install the necessary packages
|
206 |
+
|
207 |
+
- Requires: [Transformers](https://huggingface.co/docs/transformers) 4.35.0 or later.
|
208 |
+
- Requires: [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) 0.1.6 or later.
|
209 |
+
|
210 |
+
```shell
|
211 |
+
pip3 install --upgrade "autoawq>=0.1.6" "transformers>=4.35.0"
|
212 |
+
```
|
213 |
+
|
214 |
+
Note that if you are using PyTorch 2.0.1, the above AutoAWQ command will automatically upgrade you to PyTorch 2.1.0.
|
215 |
+
|
216 |
+
If you are using CUDA 11.8 and wish to continue using PyTorch 2.0.1, instead run this command:
|
217 |
+
|
218 |
+
```shell
|
219 |
+
pip3 install https://github.com/casper-hansen/AutoAWQ/releases/download/v0.1.6/autoawq-0.1.6+cu118-cp310-cp310-linux_x86_64.whl
|
220 |
+
```
|
221 |
+
|
222 |
+
If you have problems installing [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) using the pre-built wheels, install it from source instead:
|
223 |
+
|
224 |
+
```shell
|
225 |
+
pip3 uninstall -y autoawq
|
226 |
+
git clone https://github.com/casper-hansen/AutoAWQ
|
227 |
+
cd AutoAWQ
|
228 |
+
pip3 install .
|
229 |
+
```
|
230 |
+
|
231 |
+
### Transformers example code (requires Transformers 4.35.0 and later)
|
232 |
+
|
233 |
+
```python
|
234 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
|
235 |
+
|
236 |
+
model_name_or_path = "TheBloke/deepmoney-34b-200k-base-AWQ"
|
237 |
+
|
238 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path)
|
239 |
+
model = AutoModelForCausalLM.from_pretrained(
|
240 |
+
model_name_or_path,
|
241 |
+
low_cpu_mem_usage=True,
|
242 |
+
device_map="cuda:0"
|
243 |
+
)
|
244 |
+
|
245 |
+
# Using the text streamer to stream output one token at a time
|
246 |
+
streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
|
247 |
+
|
248 |
+
prompt = "Tell me about AI"
|
249 |
+
prompt_template=f'''{prompt}
|
250 |
+
'''
|
251 |
+
|
252 |
+
# Convert prompt to tokens
|
253 |
+
tokens = tokenizer(
|
254 |
+
prompt_template,
|
255 |
+
return_tensors='pt'
|
256 |
+
).input_ids.cuda()
|
257 |
+
|
258 |
+
generation_params = {
|
259 |
+
"do_sample": True,
|
260 |
+
"temperature": 0.7,
|
261 |
+
"top_p": 0.95,
|
262 |
+
"top_k": 40,
|
263 |
+
"max_new_tokens": 512,
|
264 |
+
"repetition_penalty": 1.1
|
265 |
+
}
|
266 |
+
|
267 |
+
# Generate streamed output, visible one token at a time
|
268 |
+
generation_output = model.generate(
|
269 |
+
tokens,
|
270 |
+
streamer=streamer,
|
271 |
+
**generation_params
|
272 |
+
)
|
273 |
+
|
274 |
+
# Generation without a streamer, which will include the prompt in the output
|
275 |
+
generation_output = model.generate(
|
276 |
+
tokens,
|
277 |
+
**generation_params
|
278 |
+
)
|
279 |
+
|
280 |
+
# Get the tokens from the output, decode them, print them
|
281 |
+
token_output = generation_output[0]
|
282 |
+
text_output = tokenizer.decode(token_output)
|
283 |
+
print("model.generate output: ", text_output)
|
284 |
+
|
285 |
+
# Inference is also possible via Transformers' pipeline
|
286 |
+
from transformers import pipeline
|
287 |
+
|
288 |
+
pipe = pipeline(
|
289 |
+
"text-generation",
|
290 |
+
model=model,
|
291 |
+
tokenizer=tokenizer,
|
292 |
+
**generation_params
|
293 |
+
)
|
294 |
+
|
295 |
+
pipe_output = pipe(prompt_template)[0]['generated_text']
|
296 |
+
print("pipeline output: ", pipe_output)
|
297 |
+
|
298 |
+
```
|
299 |
+
<!-- README_AWQ.md-use-from-python end -->
|
300 |
+
|
301 |
+
<!-- README_AWQ.md-compatibility start -->
|
302 |
+
## Compatibility
|
303 |
+
|
304 |
+
The files provided are tested to work with:
|
305 |
+
|
306 |
+
- [text-generation-webui](https://github.com/oobabooga/text-generation-webui) using `Loader: AutoAWQ`.
|
307 |
+
- [vLLM](https://github.com/vllm-project/vllm) version 0.2.0 and later.
|
308 |
+
- [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) version 1.1.0 and later.
|
309 |
+
- [Transformers](https://huggingface.co/docs/transformers) version 4.35.0 and later.
|
310 |
+
- [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) version 0.1.1 and later.
|
311 |
+
|
312 |
+
<!-- README_AWQ.md-compatibility end -->
|
313 |
+
|
314 |
+
<!-- footer start -->
|
315 |
+
<!-- 200823 -->
|
316 |
+
## Discord
|
317 |
+
|
318 |
+
For further support, and discussions on these models and AI in general, join us at:
|
319 |
+
|
320 |
+
[TheBloke AI's Discord server](https://discord.gg/theblokeai)
|
321 |
+
|
322 |
+
## Thanks, and how to contribute
|
323 |
+
|
324 |
+
Thanks to the [chirper.ai](https://chirper.ai) team!
|
325 |
+
|
326 |
+
Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
|
327 |
+
|
328 |
+
I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.
|
329 |
+
|
330 |
+
If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.
|
331 |
+
|
332 |
+
Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
|
333 |
+
|
334 |
+
* Patreon: https://patreon.com/TheBlokeAI
|
335 |
+
* Ko-Fi: https://ko-fi.com/TheBlokeAI
|
336 |
+
|
337 |
+
**Special thanks to**: Aemon Algiz.
|
338 |
+
|
339 |
+
**Patreon special mentions**: Michael Levine, 阿明, Trailburnt, Nikolai Manek, John Detwiler, Randy H, Will Dee, Sebastain Graf, NimbleBox.ai, Eugene Pentland, Emad Mostaque, Ai Maven, Jim Angel, Jeff Scroggin, Michael Davis, Manuel Alberto Morcote, Stephen Murray, Robert, Justin Joy, Luke @flexchar, Brandon Frisco, Elijah Stavena, S_X, Dan Guido, Undi ., Komninos Chatzipapas, Shadi, theTransient, Lone Striker, Raven Klaugh, jjj, Cap'n Zoog, Michel-Marie MAUDET (LINAGORA), Matthew Berman, David, Fen Risland, Omer Bin Jawed, Luke Pendergrass, Kalila, OG, Erik Bjäreholt, Rooh Singh, Joseph William Delisle, Dan Lewis, TL, John Villwock, AzureBlack, Brad, Pedro Madruga, Caitlyn Gatomon, K, jinyuan sun, Mano Prime, Alex, Jeffrey Morgan, Alicia Loh, Illia Dulskyi, Chadd, transmissions 11, fincy, Rainer Wilmers, ReadyPlayerEmma, knownsqashed, Mandus, biorpg, Deo Leter, Brandon Phillips, SuperWojo, Sean Connelly, Iucharbius, Jack West, Harry Royden McLaughlin, Nicholas, terasurfer, Vitor Caleffi, Duane Dunston, Johann-Peter Hartmann, David Ziegler, Olakabola, Ken Nordquist, Trenton Dambrowitz, Tom X Nguyen, Vadim, Ajan Kanaga, Leonard Tan, Clay Pascal, Alexandros Triantafyllidis, JM33133, Xule, vamX, ya boyyy, subjectnull, Talal Aujan, Alps Aficionado, wassieverse, Ari Malik, James Bentley, Woland, Spencer Kim, Michael Dempsey, Fred von Graf, Elle, zynix, William Richards, Stanislav Ovsiannikov, Edmond Seymore, Jonathan Leane, Martin Kemka, usrbinkat, Enrico Ros
|
340 |
+
|
341 |
+
|
342 |
+
Thank you to all my generous patrons and donaters!
|
343 |
+
|
344 |
+
And thank you again to a16z for their generous grant.
|
345 |
+
|
346 |
+
<!-- footer end -->
|
347 |
+
|
348 |
+
# Original model card: triad party's Deepmoney 34B 200K Base
|
349 |
+
|
350 |
+
# **Deepmoney**
|
351 |
+
|
352 |
+
![767e2d3bba166cd63a83ae54e913d35.jpg](https://cdn-uploads.huggingface.co/production/uploads/630c1adea20a5367812196f6/O0kFm05ZSe6Lw6FhGwx5_.jpeg)
|
353 |
+
|
354 |
+
|
355 |
+
Introducing **Greed** in the Seven Deadly Sins series of models.
|
356 |
+
|
357 |
+
- Full-para pre-training on Yi-34b
|
358 |
+
- High-quality research reports
|
359 |
+
- High-end cleaning process
|
360 |
+
|
361 |
+
### 1. What do I want to do?
|
362 |
+
|
363 |
+
Most of the current so-called financial models are mostly trained on public knowledge, but in the actual financial field, these public knowledge are often seriously insufficient for the current market interpretability. If you are interested, you can learn about the various propositions of Keynes, Friedman and even current behavioral finance. According to my observation, most financial models cannot make investment judgments. Because they are trained on ordinary textbooks, entry-level analyst exams, and even company public reports. I think this is of very little value for the investment.
|
364 |
+
|
365 |
+
You can think I'm joking, but the fact is that the logic of many subjective analysts may not be as rigorous as that of large models of 34b and above (excluding those excellent ones, of course). The market is changing every moment, with a lot of news and massive data in real time. For most retail investors, instead of waiting for a crappy analyst to write a report, why not use a large model to make a pipeline?
|
366 |
+
|
367 |
+
In my plan, this model is the base model of this process. In my plan, models such as information collector, target judge, qualitative analyst, quantitative analyst, and data extractor are all part of this process. . But the model itself is undoubtedly important to master a large number of qualitative and quantitative methods. That's why this model was born.
|
368 |
+
|
369 |
+
### 2. About the data
|
370 |
+
|
371 |
+
As I just said, a lot of public knowledge has some questionable validity - but that doesn't mean it's wrong. The theoretical support behind many research methods in research reports also relies on this knowledge. So in my training, I picked up some college textbooks and some professional books. Not a lot of quantity but good quality. In addition, I selected a large number of research report data from 2019 to December 2023 - these reports are issued by a variety of publishers, including traditional brokers and professional research institutions. Most of them are paid and only available to institutions. But I got them anyway through various means.
|
372 |
+
|
373 |
+
If you have read research reports, especially high-quality ones, you will find that research reports are all subjective judgment + quantitative analysis, and data support in quantitative analysis is crucial to the entire logical chain. In order to extract this data (most of them are in the form of graphs or tables), I tried a lot of multi-modal models, and the process was very painful. The conclusion is that cog-agent and emu2 are very effective for this kind of tasks. In order to better extract information, I created a process that summarizes the context of research reports as part of the prompt.
|
374 |
+
|
375 |
+
Finally, I made a blend of the data. General data is not included because it is just for greed. Moreover, the knowledge in industry research reports is comprehensive enough.
|
376 |
+
|
377 |
+
### 3. About training
|
378 |
+
|
379 |
+
Raw text, full parameter training. The base uses long context yi-34b-200k. This is necessary to complete and understand an in-depth report.
|
380 |
+
|
381 |
+
Of course, I also did a sft. [This](https://huggingface.co/TriadParty/deepmoney-34b-200k-chat-evaluator) is the analyzer in my process – I haven’t broken down the qualitative and quantitative analysis yet, but I’m already blown away by how well it works.
|
382 |
+
### More:
|
383 |
+
More technical details and evals coming soon……
|
384 |
+
|
385 |
+
### 1. 我想干什么?
|
386 |
+
当下大多数所谓的金融模型大多在公开知识上进行训练,但在实际的金融领域,这些公开知识对当前的市场可解释性往往严重不足。如果您感兴趣,可以了解一下凯恩斯、弗里德曼乃至当下行为金融学的各类主张。而据我观察,大多数金融模型无法对投资进行判断。因为它们都是在普通的教材、入门的分析师考试,乃至公司的公开报告上训练。我认为这对于投资的价值非常小。
|
387 |
+
你可以当我开玩笑,但事实是很多主观分析师的逻辑性可能还不如34b及以上的大模型来的严谨(当然不包括那些优秀的)。而每时每刻,市场都在变化,大量的新闻,海量的数据都是实时的,对于大多数散户们,与其等待蹩脚的分析师写出报告,为什么不用大模型制作一套pipeline呢?
|
388 |
+
在我的计划中,该模型是这套流程的基座模型,在我的计划中,信息搜集者、标的判断者、定性分析者定性分析者、定量分析者、数据提取者等模型都是该流程的一部分。但模型本身掌握大量的定性和定量方法毫无疑问是重要的。这就是这个模型诞生的理由。
|
389 |
+
|
390 |
+
### 2. 关于数据:
|
391 |
+
正如我刚才所说,很多公开知识的有效性都有些问题——但这并不意味着它们是错误的。在研报中很多研究方法背后的理论支撑也依赖这些知识。所以在我的训练中,我挑选了一些大学教材和一些专业书籍。数量不是很多但质量还不错。另外,我挑选了在2019-2023年12月的大量研究报告数据——这些报告的发布者多种多样,有传统的broke,也有专业研究机构。他们中的大多数是付费的,而且只对机构提供。但无论如何我通过各种各样的手段获取了它们。
|
392 |
+
|
393 |
+
如果你看过研报,尤其是高质量的那些,你会发现研报都是主观判断+定量分析,而定量分析中的数据支撑对于整个逻辑链条至关重要。为了提取这些数据(他们中的大多数以图形或者表格的形式出现),我尝试了很多多模态模型,过程非常痛苦,结论是cog-agent和emu2对于这类任务很有效。为了更好的提取信息,我制作了一套从研报上下文总结作为prompt一���分的流程。
|
394 |
+
|
395 |
+
最后,我把这些数据做了一个混合。并没有放入通识数据, 因为它就是为了greed而生的。而且行业研报中的知识足够全。
|
396 |
+
|
397 |
+
### 3:关于训练:
|
398 |
+
raw text,全参数训练。基座采用了长上下文的yi-34b-200k。这对于完成理解一篇深度报告是必须的。
|
399 |
+
|
400 |
+
当然,我也做了一次sft。这是我的流程中的分析者——目前还没有细分定性和定量分析,但[它的效果](https://huggingface.co/TriadParty/deepmoney-34b-200k-chat-evaluator)已经让我大吃一惊了。
|