INC4AI commited on
Commit
9baa1c0
·
verified ·
1 Parent(s): 3a6e223

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. README.md +45 -0
  2. generation_config.json +12 -0
README.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model:
3
+ - zai-org/GLM-5
4
+ pipeline_tag: text-generation
5
+ ---
6
+
7
+ ## Model Details
8
+
9
+ This model is a mixed int4 model with group_size 128 and symmetric quantization of [zai-org/GLM-5](https://huggingface.co/zai-org/GLM-5) generated by [intel/auto-round](https://github.com/intel/auto-round). Please follow the license of the original model.
10
+
11
+ ## Generate the Model
12
+
13
+ ```bash
14
+ auto-round --model_name zai-org/GLM-5 --scheme w4a16_mixed --iters 0 --output_dir GLM-5-int4-mixed-AutoRound
15
+ ```
16
+
17
+ ## Ethical Considerations and Limitations
18
+
19
+ The model can produce factually incorrect output, and should not be relied on to produce factually accurate information. Because of the limitations of the pretrained model and the finetuning datasets, it is possible that this model could generate lewd, biased or otherwise offensive outputs.
20
+ Therefore, before deploying any applications of the model, developers should perform safety testing.
21
+
22
+ ## Caveats and Recommendations
23
+
24
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
25
+ Here are a couple of useful links to learn more about Intel's AI software:
26
+
27
+ - [Intel Neural Compressor](https://github.com/intel/neural-compressor)
28
+ - [AutoRound](https://github.com/intel/auto-round)
29
+
30
+ ## Disclaimer
31
+
32
+ The license on this model does not constitute legal advice. We are not responsible for the actions of third parties who use this model. Please consult an attorney before using this model for commercial purposes.
33
+
34
+ ## Cite
35
+
36
+ ```
37
+ @article{cheng2023optimize,
38
+ title={Optimize weight rounding via signed gradient descent for the quantization of llms},
39
+ author={Cheng, Wenhua and Zhang, Weiwei and Shen, Haihao and Cai, Yiyang and He, Xin and Lv, Kaokao and Liu, Yi},
40
+ journal={arXiv preprint arXiv:2309.05516},
41
+ year={2023}
42
+ }
43
+ ```
44
+
45
+ [arxiv](https://arxiv.org/abs/2309.05516) [github](https://github.com/intel/auto-round)
generation_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "eos_token_id": [
4
+ 154820,
5
+ 154827,
6
+ 154829
7
+ ],
8
+ "pad_token_id": 154820,
9
+ "temperature": 1.0,
10
+ "top_p": 0.95,
11
+ "transformers_version": "5.0.2.dev0"
12
+ }