Quantized version of
DeepSeek-V2.5-1210
.
It achieves an average score of 77.8 on the
OpenLLM
benchmark (version 1), whereas the unquantized model achieves 77.82.
Model Optimizations
This model was obtained by quantizing the weights and activations to FP8 data type, ready for inference with vLLM >= 0.5.2.
This optimization reduces the number of bits per parameter from 16 to 8, reducing the disk size and GPU memory requirements by approximately 50%. The weights and activations of the linear operators within transformers blocks are quantized, except the MLP routers.
Deployment
Use with vLLM
This model can be deployed efficiently using the
vLLM
backend, as shown in the example below.
from transformers import AutoTokenizer
from vllm import LLM, SamplingParams
max_model_len, tp_size = 4096, 4
model_name = "neuralmagic-ent/DeepSeek-V2.5-1210-FP8"
tokenizer = AutoTokenizer.from_pretrained(model_name)
llm = LLM(model=model_name, tensor_parallel_size=tp_size, max_model_len=max_model_len, trust_remote_code=True)
sampling_params = SamplingParams(temperature=0.3, max_tokens=256, stop_token_ids=[tokenizer.eos_token_id])
messages_list = [
[{"role": "user", "content": "Who are you? Please respond in pirate speak!"}],
]
prompt_token_ids = [tokenizer.apply_chat_template(messages, add_generation_prompt=True) for messages in messages_list]
outputs = llm.generate(prompt_token_ids=prompt_token_ids, sampling_params=sampling_params)
generated_text = [output.outputs[0].text for output in outputs]
print(generated_text)
vLLM also supports OpenAI-compatible serving. See the
documentation
for more details.
Creation
This model was created with
llm-compressor
by running the code snippet below with the following command:
DeepSeek-V2.5-1210-FP8 huggingface.co is an AI model on huggingface.co that provides DeepSeek-V2.5-1210-FP8's model effect (), which can be used instantly with this RedHatAI DeepSeek-V2.5-1210-FP8 model. huggingface.co supports a free trial of the DeepSeek-V2.5-1210-FP8 model, and also provides paid use of the DeepSeek-V2.5-1210-FP8. Support call DeepSeek-V2.5-1210-FP8 model through api, including Node.js, Python, http.
DeepSeek-V2.5-1210-FP8 huggingface.co is an online trial and call api platform, which integrates DeepSeek-V2.5-1210-FP8's modeling effects, including api services, and provides a free online trial of DeepSeek-V2.5-1210-FP8, you can try DeepSeek-V2.5-1210-FP8 online for free by clicking the link below.
RedHatAI DeepSeek-V2.5-1210-FP8 online free url in huggingface.co:
DeepSeek-V2.5-1210-FP8 is an open source model from GitHub that offers a free installation service, and any user can find DeepSeek-V2.5-1210-FP8 on GitHub to install. At the same time, huggingface.co provides the effect of DeepSeek-V2.5-1210-FP8 install, users can directly use DeepSeek-V2.5-1210-FP8 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
DeepSeek-V2.5-1210-FP8 install url in huggingface.co: