SpecForge icon indicating copy to clipboard operation
SpecForge copied to clipboard

[Feature] Can SpecForge train and export draft models for vLLM?

Open chenaoxuan opened this issue 1 year ago • 3 comments

Checklist

  • [x] 1. If the issue you raised is not a feature but a question, please raise a discussion at https://github.com/sgl-project/SpecForge/discussions/new/choose Otherwise, it will be closed.
  • [x] 2. Please use English, otherwise it will be closed.

Motivation

If I train a model, can I easily export it for use with vLLM?

Related resources

No response

chenaoxuan avatar Nov 18 '25 07:11 chenaoxuan

We directly save models in HuggingFace format, so vLLM can load it as well.

FrankLeeeee avatar Nov 18 '25 07:11 FrankLeeeee

Closed due to inactivity.

FrankLeeeee avatar Nov 21 '25 06:11 FrankLeeeee

We directly save models in HuggingFace format, so vLLM can load it as well.

hi,During training, I changed the export backend to hf, and encountered errors when loading the trained model with vllm. (EngineCore_DP0 pid=1446) from user code: (EngineCore_DP0 pid=1446) File "/opt/miniconda/envs/vllm/lib/python3.10/site-packages/vllm/model_executor/models/llama_eagle3.py", line 197, in forward (EngineCore_DP0 pid=1446) assert hidden_states.shape[-1] == input_embeds.shape[-1]

Jim2016713 avatar Nov 28 '25 06:11 Jim2016713