Bojun-Feng commited on
Commit
e7b85e7
·
verified ·
1 Parent(s): 0ae5194

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +180 -0
README.md ADDED
@@ -0,0 +1,180 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: qwen-research
4
+ license_link: https://huggingface.co/Qwen/Qwen2.5-Coder-3B-Instruct-GGUF/blob/main/LICENSE
5
+ language:
6
+ - en
7
+ base_model:
8
+ - Qwen/Qwen2.5-Coder-3B-Instruct
9
+ pipeline_tag: text-generation
10
+ library_name: transformers
11
+ tags:
12
+ - code
13
+ - codeqwen
14
+ - chat
15
+ - qwen
16
+ - qwen-coder
17
+ ---
18
+ <!-- markdownlint-disable MD041 -->
19
+
20
+ <!-- header start -->
21
+ <!-- 200823 -->
22
+ <div style="width: auto; margin-left: auto; margin-right: auto">
23
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/64a523ba1ed90082dafde3d3/kJrkxofwOp-89uYFe0EBb.png" alt="LlamaFile" style="width: 50%; min-width: 400px; display: block; margin: auto;">
24
+
25
+ <!-- markdownlint-disable MD041 -->
26
+
27
+ <!-- header start -->
28
+ <!-- 200823 -->
29
+
30
+ I am not the original creator of llamafile, all credit of llamafile goes to Jartine:
31
+ <!-- README_llamafile.md-about-llamafile end -->
32
+ <!-- repositories-available start -->
33
+ <div style="width: auto; margin-left: auto; margin-right: auto">
34
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/FwAVVu7eJ4">Chat & support: jartine's Discord server</a></p>
35
+ </div>
36
+ <div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">jartine's LLM work is generously supported by a grant from <a href="https://mozilla.org">mozilla</a></p></div>
37
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
38
+ <!-- header end -->
39
+
40
+ # Qwen2.5 Coder 3B Instruct GGUF - llamafile
41
+
42
+ ## Run LLMs locally with a single file - No installation required!
43
+
44
+ All you need is download a file and run it.
45
+
46
+ Our goal is to make open source large language models much more
47
+ accessible to both developers and end users. We're doing that by
48
+ combining [llama.cpp](https://github.com/ggerganov/llama.cpp) with [Cosmopolitan Libc](https://github.com/jart/cosmopolitan) into one
49
+ framework that collapses all the complexity of LLMs down to
50
+ a single-file executable (called a "llamafile") that runs
51
+ locally on most computers, with no installation.
52
+
53
+ ## How to Use (Modified from [Git README](https://github.com/Mozilla-Ocho/llamafile/tree/8f73d39cf3a767897b8ade6dda45e5744c62356a?tab=readme-ov-file#quickstart))
54
+
55
+ The easiest way to try it for yourself is to download our example llamafile.
56
+ With llamafile, all inference happens locally; no data ever leaves your computer.
57
+
58
+ 1. Download the llamafile.
59
+
60
+ 2. Open your computer's terminal.
61
+
62
+ 3. If you're using macOS, Linux, or BSD, you'll need to grant permission
63
+ for your computer to execute this new file. (You only need to do this
64
+ once.)
65
+
66
+ ```sh
67
+ chmod +x qwen2.5-coder-3b-instruct-q8_0.gguf
68
+ ```
69
+
70
+ 4. If you're on Windows, rename the file by adding ".exe" on the end.
71
+
72
+ 5. Run the llamafile. e.g.:
73
+
74
+ ```sh
75
+ ./qwen2.5-coder-3b-instruct-q8_0.gguf
76
+ ```
77
+
78
+ 6. Your browser should open automatically and display a chat interface.
79
+ (If it doesn't, just open your browser and point it at http://localhost:8080.)
80
+
81
+ 7. When you're done chatting, return to your terminal and hit
82
+ `Control-C` to shut down llamafile.
83
+
84
+ Please note that LlamaFile is still under active development. Some methods may be not be compatible with the most recent documents.
85
+
86
+ ## Settings for Qwen2.5 Coder 3B Instruct GGUF Llamafiles
87
+
88
+ - Model creator: [Qwen](https://huggingface.co/Qwen)
89
+ - Quantized GGUF files used: [Qwen/Qwen2.5-Coder-3B-Instruct-GGUF](https://huggingface.co/Qwen/Qwen2.5-Coder-3B-Instruct-GGUF/tree/f74adce6aa16316c625447af059dbebe4983757c)
90
+ - Commit message "update README.md"
91
+ - Commit hash f74adce6aa16316c625447af059dbebe4983757c
92
+ - LlamaFile version used: [Mozilla-Ocho/llamafile](https://github.com/Mozilla-Ocho/llamafile/tree/29b5f27172306da39a9c70fe25173da1b1564f82)
93
+ - Commit message "Merge pull request #687 from Xydane/main Add Support for DeepSeek-R1 models"
94
+ - Commit hash 29b5f27172306da39a9c70fe25173da1b1564f82
95
+ - `.args` content format (example):
96
+
97
+ ```
98
+ -m
99
+ qwen2.5-coder-3b-instruct-q8_0.gguf
100
+ ...
101
+ ```
102
+
103
+ ## (Following is original model card for Qwen2.5 Coder 3B Instruct GGUF)
104
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
105
+
106
+
107
+
108
+ # Qwen2.5-Coder-3B-Instruct-GGUF
109
+
110
+ ## Introduction
111
+
112
+ Qwen2.5-Coder is the latest series of Code-Specific Qwen large language models (formerly known as CodeQwen). As of now, Qwen2.5-Coder has covered six mainstream model sizes, 0.5, 1.5, 3, 7, 14, 32 billion parameters, to meet the needs of different developers. Qwen2.5-Coder brings the following improvements upon CodeQwen1.5:
113
+
114
+ - Significantly improvements in **code generation**, **code reasoning** and **code fixing**. Base on the strong Qwen2.5, we scale up the training tokens into 5.5 trillion including source code, text-code grounding, Synthetic data, etc. Qwen2.5-Coder-32B has become the current state-of-the-art open-source codeLLM, with its coding abilities matching those of GPT-4o.
115
+ - A more comprehensive foundation for real-world applications such as **Code Agents**. Not only enhancing coding capabilities but also maintaining its strengths in mathematics and general competencies.
116
+
117
+ **This repo contains the instruction-tuned 3B Qwen2.5-Coder model in the GGUF Format**, which has the following features:
118
+ - Type: Causal Language Models
119
+ - Training Stage: Pretraining & Post-training
120
+ - Architecture: transformers with RoPE, SwiGLU, RMSNorm, Attention QKV bias and tied word embeddings
121
+ - Number of Parameters: 3.09B
122
+ - Number of Paramaters (Non-Embedding): 2.77B
123
+ - Number of Layers: 36
124
+ - Number of Attention Heads (GQA): 16 for Q and 2 for KV
125
+ - Context Length: Full 32,768 tokens
126
+ - Note: Currently, only vLLM supports YARN for length extrapolating. If you want to process sequences up to 131,072 tokens, please refer to non-GGUF models.
127
+ - Quantization: q2_K, q3_K_M, q4_0, q4_K_M, q5_0, q5_K_M, q6_K, q8_0
128
+
129
+ For more details, please refer to our [blog](https://qwenlm.github.io/blog/qwen2.5-coder-family/), [GitHub](https://github.com/QwenLM/Qwen2.5-Coder), [Documentation](https://qwen.readthedocs.io/en/latest/), [Arxiv](https://arxiv.org/abs/2409.12186).
130
+
131
+ ## Quickstart
132
+
133
+ Check out our [llama.cpp documentation](https://qwen.readthedocs.io/en/latest/run_locally/llama.cpp.html) for more usage guide.
134
+
135
+ We advise you to clone [`llama.cpp`](https://github.com/ggerganov/llama.cpp) and install it following the official guide. We follow the latest version of llama.cpp.
136
+ In the following demonstration, we assume that you are running commands under the repository `llama.cpp`.
137
+
138
+ Since cloning the entire repo may be inefficient, you can manually download the GGUF file that you need or use `huggingface-cli`:
139
+ 1. Install
140
+ ```shell
141
+ pip install -U huggingface_hub
142
+ ```
143
+ 2. Download:
144
+ ```shell
145
+ huggingface-cli download Qwen/Qwen2.5-Coder-3B-Instruct-GGUF qwen2.5-3b-coder-instruct-q5_k_m.gguf --local-dir . --local-dir-use-symlinks False
146
+ ```
147
+
148
+ For users, to achieve chatbot-like experience, it is recommended to commence in the conversation mode:
149
+
150
+ ```shell
151
+ ./llama-cli -m <gguf-file-path> \
152
+ -co -cnv -p "You are Qwen, created by Alibaba Cloud. You are a helpful assistant." \
153
+ -fa -ngl 80 -n 512
154
+ ```
155
+
156
+
157
+ ## Evaluation & Performance
158
+
159
+ Detailed evaluation results are reported in this [📑 blog](https://qwenlm.github.io/blog/qwen2.5-coder-family/).
160
+
161
+ For requirements on GPU memory and the respective throughput, see results [here](https://qwen.readthedocs.io/en/latest/benchmark/speed_benchmark.html).
162
+
163
+ ## Citation
164
+
165
+ If you find our work helpful, feel free to give us a cite.
166
+
167
+ ```
168
+ @article{hui2024qwen2,
169
+ title={Qwen2. 5-Coder Technical Report},
170
+ author={Hui, Binyuan and Yang, Jian and Cui, Zeyu and Yang, Jiaxi and Liu, Dayiheng and Zhang, Lei and Liu, Tianyu and Zhang, Jiajun and Yu, Bowen and Dang, Kai and others},
171
+ journal={arXiv preprint arXiv:2409.12186},
172
+ year={2024}
173
+ }
174
+ @article{qwen2,
175
+ title={Qwen2 Technical Report},
176
+ author={An Yang and Baosong Yang and Binyuan Hui and Bo Zheng and Bowen Yu and Chang Zhou and Chengpeng Li and Chengyuan Li and Dayiheng Liu and Fei Huang and Guanting Dong and Haoran Wei and Huan Lin and Jialong Tang and Jialin Wang and Jian Yang and Jianhong Tu and Jianwei Zhang and Jianxin Ma and Jin Xu and Jingren Zhou and Jinze Bai and Jinzheng He and Junyang Lin and Kai Dang and Keming Lu and Keqin Chen and Kexin Yang and Mei Li and Mingfeng Xue and Na Ni and Pei Zhang and Peng Wang and Ru Peng and Rui Men and Ruize Gao and Runji Lin and Shijie Wang and Shuai Bai and Sinan Tan and Tianhang Zhu and Tianhao Li and Tianyu Liu and Wenbin Ge and Xiaodong Deng and Xiaohuan Zhou and Xingzhang Ren and Xinyu Zhang and Xipin Wei and Xuancheng Ren and Yang Fan and Yang Yao and Yichang Zhang and Yu Wan and Yunfei Chu and Yuqiong Liu and Zeyu Cui and Zhenru Zhang and Zhihao Fan},
177
+ journal={arXiv preprint arXiv:2407.10671},
178
+ year={2024}
179
+ }
180
+ ```