xinhe commited on
Commit
467ca07
·
verified ·
1 Parent(s): c6619c4

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +71 -0
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - auto-round
4
+ license: other
5
+ license_name: modified-mit
6
+ library_name: transformers
7
+ pipeline_tag: image-text-to-text
8
+ base_model:
9
+ - moonshotai/Kimi-K2.5
10
+ ---
11
+ ## Model Details
12
+
13
+ This model is an int4 model with group_size 128 of [moonshotai/Kimi-K2.5](https://huggingface.co/moonshotai/Kimi-K2.5) generated by [intel/auto-round](https://github.com/intel/auto-round) with RTN mode. Please follow the license of the original model.
14
+
15
+
16
+ ## vllm Infernece Example
17
+
18
+ ~~~bash
19
+ vllm serve INCModel/Kimi-K2.5-MXFP4-AutoRound -tp 8 --mm-encoder-tp-mode data --trust-remote-code --tool-call-parser kimi_k2 --reasoning-parser kimi_k2 --served-model-name kimi --max-model-len 4096
20
+ ~~~
21
+
22
+ ~~~bash
23
+ curl http://localhost:8000/v1/chat/completions -H "Content-Type: application/json" -d ' {
24
+ "model": "kimi",
25
+ "messages": [
26
+ {"role": "system", "content": "You are a helpful assistant."},
27
+ {"role": "user", "content": "Write code to fine-tune an LLM."}
28
+ ],
29
+ "temperature": 1,
30
+ "max_tokens": 2048
31
+ } '
32
+
33
+ ~~~
34
+
35
+
36
+ ## Generate the Model
37
+
38
+ This pr is required https://github.com/intel/auto-round/pull/1642
39
+
40
+ RTN version
41
+
42
+ ~~~bash
43
+ auto-round /workspace/models/moonshotai/Kimi-K2.5 --iters 0 --disable_opt_rtn --scheme mxfp4 --format llm_compressor --output_dir /workspace/models/moonshotai/Kimi-K2.5-MXFP4
44
+ # the automatic saved preprocessor_config.json doesn't work, copy it.
45
+ cp /workspace/models/moonshotai/Kimi-K2.5/preprocessor_config.json /workspace/models/moonshotai/Kimi-K2.5-MXFP4/Kimi-K2.5-mxfp-w4g32/preprocessor_config.json
46
+ ~~~
47
+
48
+
49
+ ## Ethical Considerations and Limitations
50
+
51
+ 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.
52
+
53
+ Therefore, before deploying any applications of the model, developers should perform safety testing.
54
+
55
+ ## Caveats and Recommendations
56
+
57
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
58
+
59
+ Here are a couple of useful links to learn more about Intel's AI software:
60
+
61
+ - [Intel Neural Compressor](https://github.com/intel/neural-compressor)
62
+
63
+ ## Disclaimer
64
+
65
+ 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.
66
+
67
+ ## Cite
68
+
69
+ @article{cheng2023optimize, title={Optimize weight rounding via signed gradient descent for the quantization of llms}, author={Cheng, Wenhua and Zhang, Weiwei and Shen, Haihao and Cai, Yiyang and He, Xin and Lv, Kaokao and Liu, Yi}, journal={arXiv preprint arXiv:2309.05516}, year={2023} }
70
+
71
+ [arxiv](https://arxiv.org/abs/2309.05516) [github](