n1ck-guo commited on
Commit
75daa4f
1 Parent(s): dc7decd

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -2
README.md CHANGED
@@ -6,7 +6,7 @@ base_model:
6
  ---
7
  ## Model Details
8
 
9
- This model is an int4 model(The vision module has also been quantized) with group_size 128 and symmetric quantization of [deepseek-ai/deepseek-vl2](https://huggingface.co/deepseek-ai/deepseek-vl2) generated by [intel/auto-round](https://github.com/intel/auto-round).
10
 
11
  ## How to Use
12
  ### INT4 Inference
@@ -25,7 +25,13 @@ model_path = "OPEA/deepseek-vl2-int4-sym-inc"
25
  vl_chat_processor: DeepseekVLV2Processor = DeepseekVLV2Processor.from_pretrained(model_path)
26
  tokenizer = vl_chat_processor.tokenizer
27
 
28
- vl_gpt: DeepseekVLV2ForCausalLM = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True, device_map="auto", torch_dtype="auto")
 
 
 
 
 
 
29
  vl_gpt = vl_gpt.eval()
30
 
31
  image_url = "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg"
 
6
  ---
7
  ## Model Details
8
 
9
+ This model is an int4 model(The vision module has also been quantized) with group_size 128 and symmetric quantization of [deepseek-ai/deepseek-vl2](https://huggingface.co/deepseek-ai/deepseek-vl2) generated by [intel/auto-round](https://github.com/intel/auto-round). Load the model with revision ```2e595e8``` to use AutoGPTQ format.
10
 
11
  ## How to Use
12
  ### INT4 Inference
 
25
  vl_chat_processor: DeepseekVLV2Processor = DeepseekVLV2Processor.from_pretrained(model_path)
26
  tokenizer = vl_chat_processor.tokenizer
27
 
28
+ vl_gpt: DeepseekVLV2ForCausalLM = AutoModelForCausalLM.from_pretrained(
29
+ model_path,
30
+ trust_remote_code=True,
31
+ device_map="auto",
32
+ torch_dtype="auto",
33
+ ## revision="2e595e8" ##AutoGPTQ format
34
+ )
35
  vl_gpt = vl_gpt.eval()
36
 
37
  image_url = "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg"