Add link to paper
Browse filesThis PR links the model to the paper page, ensuring people can find it at https://huggingface.co/papers/2506.07900
README.md
CHANGED
@@ -1,18 +1,19 @@
|
|
1 |
---
|
2 |
-
license: apache-2.0
|
3 |
language:
|
4 |
- zh
|
5 |
- en
|
6 |
-
pipeline_tag: text-generation
|
7 |
library_name: transformers
|
|
|
|
|
8 |
---
|
|
|
9 |
<div align="center">
|
10 |
<img src="https://github.com/OpenBMB/MiniCPM/blob/main/assets/minicpm_logo.png?raw=true" width="500em" ></img>
|
11 |
</div>
|
12 |
|
13 |
<p align="center">
|
14 |
-
<a href="https://github.com/OpenBMB/MiniCPM
|
15 |
-
<a href="https://
|
16 |
<a href="https://github.com/OpenBMB/MiniCPM-V/" target="_blank">MiniCPM-V Repo</a> |
|
17 |
Join us in <a href="https://discord.gg/3cGQn9b3YM" target="_blank">Discord</a> and <a href="https://github.com/OpenBMB/MiniCPM/blob/main/assets/wechat.jpg" target="_blank">WeChat</a>
|
18 |
|
@@ -70,7 +71,7 @@ from transformers import AutoTokenizer
|
|
70 |
from vllm import LLM, SamplingParams
|
71 |
|
72 |
model_name = "openbmb/MiniCPM3-4B"
|
73 |
-
prompt = [{"role": "user", "content": "推荐5个北京的景点。"}]
|
74 |
|
75 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
76 |
input_text = tokenizer.apply_chat_template(prompt, tokenize=False, add_generation_prompt=True)
|
@@ -289,7 +290,7 @@ print(outputs[0].outputs[0].text)
|
|
289 |
|
290 |
## LICENSE
|
291 |
* This repository is released under the [Apache-2.0](https://github.com/OpenBMB/MiniCPM/blob/main/LICENSE) License.
|
292 |
-
* The usage of MiniCPM3-4B model weights must strictly follow [MiniCPM Model License.md](https://github.com/OpenBMB/MiniCPM/blob/main/MiniCPM%20Model%20License.md)
|
293 |
* The models and weights of MiniCPM3-4B are completely free for academic research. after filling out a ["questionnaire"](https://modelbest.feishu.cn/share/base/form/shrcnpV5ZT9EJ6xYjh3Kx0J6v8g) for registration, are also available for free commercial use.
|
294 |
|
295 |
## Citation
|
|
|
1 |
---
|
|
|
2 |
language:
|
3 |
- zh
|
4 |
- en
|
|
|
5 |
library_name: transformers
|
6 |
+
license: apache-2.0
|
7 |
+
pipeline_tag: text-generation
|
8 |
---
|
9 |
+
|
10 |
<div align="center">
|
11 |
<img src="https://github.com/OpenBMB/MiniCPM/blob/main/assets/minicpm_logo.png?raw=true" width="500em" ></img>
|
12 |
</div>
|
13 |
|
14 |
<p align="center">
|
15 |
+
<a href="https://github.com/OpenBMB/MiniCPM/\" target="_blank">MiniCPM Repo</a> |
|
16 |
+
<a href="https://huggingface.co/papers/2506.07900" target="_blank">MiniCPM Paper</a> |
|
17 |
<a href="https://github.com/OpenBMB/MiniCPM-V/" target="_blank">MiniCPM-V Repo</a> |
|
18 |
Join us in <a href="https://discord.gg/3cGQn9b3YM" target="_blank">Discord</a> and <a href="https://github.com/OpenBMB/MiniCPM/blob/main/assets/wechat.jpg" target="_blank">WeChat</a>
|
19 |
|
|
|
71 |
from vllm import LLM, SamplingParams
|
72 |
|
73 |
model_name = "openbmb/MiniCPM3-4B"
|
74 |
+
prompt = [{"role": "user", "content": "推荐5个北京的景点。"}],
|
75 |
|
76 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
77 |
input_text = tokenizer.apply_chat_template(prompt, tokenize=False, add_generation_prompt=True)
|
|
|
290 |
|
291 |
## LICENSE
|
292 |
* This repository is released under the [Apache-2.0](https://github.com/OpenBMB/MiniCPM/blob/main/LICENSE) License.
|
293 |
+
* The usage of MiniCPM3-4B model weights must strictly follow [MiniCPM Model License.md](https://github.com/OpenBMB/MiniCPM/blob/main/MiniCPM%20Model%20License.md).\
|
294 |
* The models and weights of MiniCPM3-4B are completely free for academic research. after filling out a ["questionnaire"](https://modelbest.feishu.cn/share/base/form/shrcnpV5ZT9EJ6xYjh3Kx0J6v8g) for registration, are also available for free commercial use.
|
295 |
|
296 |
## Citation
|