zR
commited on
Commit
•
e168d9e
1
Parent(s):
b555ab8
- LICENSE +84 -0
- README.md +31 -41
- README_zh.md +26 -0
- configuration.json +0 -1
LICENSE
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The GLM-Edge License
|
2 |
+
|
3 |
+
1. 定义
|
4 |
+
|
5 |
+
“许可方”是指分发其软件的 GLM-Edge 模型团队。
|
6 |
+
“软件”是指根据本许可提供的 GLM-Edge 模型参数。
|
7 |
+
|
8 |
+
2. 许可授予
|
9 |
+
|
10 |
+
根据本许可的条款和条件,许可方特此授予您非排他性、全球性、不可转让、不可再许可、可撤销、免版税的版权许可。
|
11 |
+
本许可允许您免费使用本仓库中的所有开源模型进行学术研究,对于希望将模型用于商业目的的用户,需在[这里](https://open.bigmodel.cn/mla/form)完成登记。经过登记的用户可以免费使用本模型进行商业活动,但必须遵守本许可的所有条款和条件。
|
12 |
+
上述版权声明和本许可声明应包含在本软件的所有副本或重要部分中。
|
13 |
+
如果您分发或提供 THUDM / 智谱AI 关于 GLM-Edge 开源模型的材料(或其任何衍生作品),或使用其中任何材料(包括 GLM-Edge 系列的所有开源模型)的产品或服务,您应:
|
14 |
+
|
15 |
+
(A) 随任何此类 THUDM / 智谱AI 材料提供本协议的副本;
|
16 |
+
(B) 在相关网站、用户界面、博客文章、关于页面或产品文档上突出显示 “Built with GLM-Edge”。
|
17 |
+
如果您使用 THUDM / 智谱AI的 GLM-Edge 开源模型的材料来创建、训练、微调或以其他方式改进已分发或可用的 AI 模型,您还应在任何此类 AI 模型名称的开头添加 “GLM-Edge”。
|
18 |
+
|
19 |
+
3. 限制
|
20 |
+
|
21 |
+
您不得出于任何军事或非法目的使用、复制、修改、合并、发布、分发、复制或创建本软件的全部或部分衍生作品。
|
22 |
+
您不得利用本软件从事任何危害国家安全和国家统一,危害社会公共利益及公序良俗,侵犯他人商业秘密、知识产权、名誉权、肖像权、财产权等权益的行为。
|
23 |
+
您在使用中应遵循使用地所适用的法律法规政策、道德规范等要求。
|
24 |
+
|
25 |
+
4. 免责声明
|
26 |
+
|
27 |
+
本软件“按原样”提供,不提供任何明示或暗示的保证,包括但不限于对适销性、特定用途的适用性和非侵权性的保证。
|
28 |
+
在任何情况下,作者或版权持有人均不对任何索赔、损害或其他责任负责,无论是在合同诉讼、侵权行为还是其他方面,由软件或软件的使用或其他交易引起、由软件引起或与之相关
|
29 |
+
软件。
|
30 |
+
|
31 |
+
5. 责任限制
|
32 |
+
|
33 |
+
除适用法律禁止的范围外,在任何情况下且根据任何法律理论,无论是基于侵权行为、疏忽、合同、责任或其他原因,任何许可方均不对您承担任何直接、间接、特殊、偶然、示范性、
|
34 |
+
或间接损害,或任何其他商业损失,即使许可人已被告知此类损害的可能性。
|
35 |
+
|
36 |
+
6. 争议解决
|
37 |
+
|
38 |
+
本许可受中华人民共和国法律管辖并按其解释。 因本许可引起的或与本许可有关的任何争议应提交北京市海淀区人民法院。
|
39 |
+
请注意,许可证可能会更新到更全面的版本。 有关许可和版权的任何问题,请通过 license@zhipuai.cn 或 opensource@zhipuai.cn 与我们联系。
|
40 |
+
|
41 |
+
1. Definitions
|
42 |
+
|
43 |
+
“Licensor” means the GLM-Edge Model Team that distributes its Software.
|
44 |
+
“Software” means the GLM-Edge model parameters made available under this license.
|
45 |
+
|
46 |
+
2. License
|
47 |
+
|
48 |
+
Under the terms and conditions of this license, the Licensor hereby grants you a non-exclusive, worldwide, non-transferable, non-sublicensable, revocable, royalty-free copyright license.
|
49 |
+
This license allows you to use all open source models in this repository for free for academic research. For users who wish to use the models for commercial purposes, please do so [here](https://open.bigmodel.cn/mla/form)
|
50 |
+
Complete registration. Registered users are free to use this model for commercial activities, but must comply with all terms and conditions of this license.
|
51 |
+
The copyright notice and this license notice shall be included in all copies or substantial portions of the Software.
|
52 |
+
If you distribute or provide THUDM / Zhipu AI materials on the GLM-Edge open source model (or any derivative works thereof), or products or services that use any materials therein (including all open source models of the GLM-Edge series), you should:
|
53 |
+
|
54 |
+
(A) Provide a copy of this Agreement with any such THUDM/Zhipu AI Materials;
|
55 |
+
(B) Prominently display "Built with GLM-Edge" on the relevant website, user interface, blog post, related page or product documentation.
|
56 |
+
If you use materials from THUDM/ZHIPU's GLM-Edge model to create, train, operate, or otherwise improve assigned or available AI models, you should also add "GLM-Edge" to the beginning of any such AI model name.
|
57 |
+
|
58 |
+
3. Restrictions
|
59 |
+
|
60 |
+
You are not allowed to use, copy, modify, merge, publish, distribute, copy or create all or part of the derivative works of this software for any military or illegal purposes.
|
61 |
+
You are not allowed to use this software to engage in any behavior that endangers national security and unity, endangers social public interests and public order, infringes on the rights and interests of others such as trade secrets, intellectual property rights, reputation rights, portrait rights, and property rights.
|
62 |
+
You should comply with the applicable laws, regulations, policies, ethical standards, and other requirements in the place of use during use.
|
63 |
+
|
64 |
+
4. Disclaimer
|
65 |
+
|
66 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
67 |
+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
68 |
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
69 |
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
70 |
+
|
71 |
+
5. Limitation of Liability
|
72 |
+
|
73 |
+
EXCEPT TO THE EXTENT PROHIBITED BY APPLICABLE LAW, IN NO EVENT AND UNDER NO LEGAL THEORY, WHETHER BASED IN TORT,
|
74 |
+
NEGLIGENCE, CONTRACT, LIABILITY, OR OTHERWISE WILL ANY LICENSOR BE LIABLE TO YOU FOR ANY DIRECT, INDIRECT, SPECIAL,
|
75 |
+
INCIDENTAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES, OR ANY OTHER COMMERCIAL LOSSES, EVEN IF THE LICENSOR HAS BEEN ADVISED
|
76 |
+
OF THE POSSIBILITY OF SUCH DAMAGES.
|
77 |
+
|
78 |
+
6. Dispute Resolution
|
79 |
+
|
80 |
+
This license shall be governed and construed in accordance with the laws of People’s Republic of China. Any dispute
|
81 |
+
arising from or in connection with this License shall be submitted to Haidian District People's Court in Beijing.
|
82 |
+
|
83 |
+
Note that the license is subject to update to a more comprehensive version. For any questions related to the license and
|
84 |
+
copyright, please contact us at license@zhipuai.cn.
|
README.md
CHANGED
@@ -1,55 +1,45 @@
|
|
1 |
---
|
2 |
-
frameworks:
|
3 |
-
- Pytorch
|
4 |
license: other
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
#language:
|
17 |
-
##语言代码列表 https://help.aliyun.com/document_detail/215387.html?spm=a2c4g.11186623.0.0.9f8d7467kni6Aa
|
18 |
-
#- cn
|
19 |
-
|
20 |
-
#metrics:
|
21 |
-
##如 CIDEr、Blue、ROUGE 等
|
22 |
-
#- CIDEr
|
23 |
-
|
24 |
-
#tags:
|
25 |
-
##各种自定义,包括 pretrained、fine-tuned、instruction-tuned、RL-tuned 等训练方法和其他
|
26 |
-
#- gguf
|
27 |
-
|
28 |
-
#tools:
|
29 |
-
##如 vllm、fastchat、llamacpp、AdaSeq 等
|
30 |
-
#- llamacpp
|
31 |
---
|
32 |
|
33 |
-
#
|
34 |
|
35 |
-
|
36 |
|
37 |
-
|
38 |
|
39 |
-
|
40 |
|
41 |
-
|
42 |
-
|
43 |
|
44 |
-
```
|
45 |
git clone https://github.com/piDack/llama.cpp -b support_glm_edge_model
|
46 |
-
cmake -B build -DGGML_CUDA=ON #
|
47 |
-
cmake --build build -- -j
|
48 |
```
|
49 |
|
50 |
-
|
51 |
-
|
52 |
-
|
|
|
|
|
53 |
llama-cli -m <path>/model.gguf -p "<|user|>\nhi<|assistant|>\n" -ngl 999
|
54 |
```
|
55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
|
|
|
|
2 |
license: other
|
3 |
+
license_name: glm-4
|
4 |
+
license_link: LICENSE
|
5 |
+
language:
|
6 |
+
- zh
|
7 |
+
- en
|
8 |
+
pipeline_tag: text-generation
|
9 |
+
tags:
|
10 |
+
- glm
|
11 |
+
- edge
|
12 |
+
inference: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
---
|
14 |
|
15 |
+
# Glm-Edge-Chat-4B-GGUF
|
16 |
|
17 |
+
中文阅读, 点击[这里](README_zh.md)
|
18 |
|
19 |
+
## Inference with Ollama
|
20 |
|
21 |
+
### Installation
|
22 |
|
23 |
+
The code for adapting this model is actively being integrated into the official `llama.cpp`. You can test it using the
|
24 |
+
following adapted version:
|
25 |
|
26 |
+
```bash
|
27 |
git clone https://github.com/piDack/llama.cpp -b support_glm_edge_model
|
28 |
+
cmake -B build -DGGML_CUDA=ON # Or enable other acceleration hardware
|
29 |
+
cmake --build build -- -j
|
30 |
```
|
31 |
|
32 |
+
### Inference
|
33 |
+
|
34 |
+
After installation, you can start the GLM-Edge Chat model using the following command:
|
35 |
+
|
36 |
+
```shell
|
37 |
llama-cli -m <path>/model.gguf -p "<|user|>\nhi<|assistant|>\n" -ngl 999
|
38 |
```
|
39 |
+
|
40 |
+
In the command-line interface, you can interact with the model by entering your requests, and the model will provide the
|
41 |
+
corresponding responses.
|
42 |
+
|
43 |
+
## License
|
44 |
+
|
45 |
+
The usage of this model’s weights is subject to the terms outlined in the [LICENSE](LICENSE).
|
README_zh.md
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Glm-Edge-Chat-4B-GGUF
|
2 |
+
|
3 |
+
## 使用ollama 推理
|
4 |
+
|
5 |
+
### 安装
|
6 |
+
目前针对该模型的适配代码正在积极合入官方llama.cpp中,可通过下述适配版本进行测试:
|
7 |
+
|
8 |
+
```
|
9 |
+
git clone https://github.com/piDack/llama.cpp -b support_glm_edge_model
|
10 |
+
cmake -B build -DGGML_CUDA=ON # 或开启其他加速硬件
|
11 |
+
cmake --build build -- -j
|
12 |
+
```
|
13 |
+
|
14 |
+
### 推理
|
15 |
+
|
16 |
+
安装完成后,您可以通过以下命令启动GLM-Edge Chat模型:
|
17 |
+
|
18 |
+
```shell
|
19 |
+
llama-cli -m <path>/model.gguf -p "<|user|>\nhi<|assistant|>\n" -ngl 999
|
20 |
+
```
|
21 |
+
|
22 |
+
在命令行界面,您可以与模型进行交互,输入您的需求,模型将为您提供相应的回复。
|
23 |
+
|
24 |
+
## 协议
|
25 |
+
|
26 |
+
本模型的权重的使用则需要遵循 [LICENSE](LICENSE)。
|
configuration.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"framework":"Pytorch","task":"text-generation"}
|
|
|
|