Comments (9)
After testing, the --enforce-eager parameter does not work, but setting dtype to float32 works. However, this means that the quantized model cannot be deployed on h20.
from vllm.
llama model init start
INFO 04-26 17:03:13 llm_engine.py:98] Initializing an LLM engine (v0.4.1) with config: model='/mnt/deep_learning_test/testsuite/dataset/llms_inference_llama7b-v2_accelerate/checkpoint/7B-V2/', speculative_config=None, tokenizer='/mnt/deep_learning_test/testsuite/dataset/llms_inference_llama7b-v2_accelerate/checkpoint/7B-V2/', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=True, dtype=torch.float16, max_seq_len=4096, download_dir=None, load_format=LoadFormat.AUTO, tensor_parallel_size=1, disable_custom_all_reduce=Falsequantization=None, enforce_eager=False, kv_cache_dtype=auto, quantization_param_path=None, device_config=cuda, decoding_config=DecodingConfig(guided_decoding_backend='outlines'), seed=0)
INFO 04-26 17:03:13 utils.py:613] Found nccl from library /root/.config/vllm/nccl/cu12/libnccl.so.2.18.1
INFO 04-26 17:03:16 selector.py:77] Cannot use FlashAttention-2 backend because the flash_attn package is not found. Please install it for better performance.
INFO 04-26 17:03:16 selector.py:33] Using XFormers backend.
INFO 04-26 17:03:25 model_runner.py:173] Loading model weights took 12.5523 GB
INFO 04-26 17:03:25 gpu_executor.py:119] # GPU blocks: 9217, # CPU blocks: 512
INFO 04-26 17:03:26 model_runner.py:977] Capturing the model for CUDA graphs. This may lead to unexpected consequences if the model is not static. To run the model in eager mode, set 'enforce_eager=True' or use '--enforce-eager' in the CLI.
INFO 04-26 17:03:26 model_runner.py:981] CUDA graphs can take additional 1~3 GiB memory per GPU. If you are running out of memory, consider decreasing gpu_memory_utilization
or enforcing eager mode. You can also reduce the max_num_seqs
as needed to decrease memory usage.
Floating point exception (core dumped)
from vllm.
Does it occur everytime? Or only for certain prompt?
In addition:
If you experienced crashes or hangs, it would be helpful to run vllm with
export VLLM_TRACE_FUNCTION=1
. All the function calls in vllm will be recorded. Inspect these log files, and tell which function crashes or hangs.
from vllm.
它每次都会发生吗?还是只针对某些提示?
另外:
如果您遇到崩溃或挂起,使用 .vllm 中的所有函数调用都将被记录下来。检查这些日志文件,并判断哪个函数崩溃或挂起。
export VLLM_TRACE_FUNCTION=1
Yes, this issue is inevitable. On the H20 model, all vllm versions with float16 accuracy will experience this error
from vllm.
Met the same bug, and it's useful to add --enforce-eager
to avoid it.
Additionally, some models (for example facebook/opt-125m) with float16 won't meet this bug.
from vllm.
Met the same bug with Qwen1.5-14B-Chat on the H20, and I was able to solve it with float32
. But using float16 and add --enforce-eager
does not solve the problem.
from vllm.
Met the same bug with almost all LLM on the H20, but --enforce-eager does not solve the problem.
from vllm.
Try to build vllm from source using the nvcr.io/nvidia/pytorch:24.04-py3 container to avoid the bug related to cuBLAS on specific shapes (on H20).
from vllm.
I am using nvcr.io/nvidia/pytorch:23.10-py3,it's all right when I use the float32 and float16, but floating point exception when I use bfloat16.
I tried:
- build vllm from source using the nvcr.io/nvidia/pytorch:24.04-py3 container on H20 (still , float16 good, bfloat16 floating point exception)
- nvcr.io/nvidia/pytorch:23.10-py3 on H800 (all good)
from vllm.
Related Issues (20)
- [Usage]: Function calling for mistral v0.3
- [Bug]: vLLM does not support virtual GPU
- [Bug]: Unexpected prompt token logprob behaviors of llama 2 when setting echo=True for openai-api server HOT 1
- [Bug]: Getting an empty string ('') for every call on fine-tuned Code-Llama-7b-hf model HOT 1
- [Bug]: non-deterministic Python gc order leads to flaky tests HOT 13
- [Usage]: Howto quiet the terminal 'Info' outputs in vllm HOT 1
- [Performance]: [Automatic Prefix Caching] When hitting the KV cached blocks, the first execute is slow, and then is fast. HOT 2
- [Speculative decoding]: The content generated by speculative decoding is inconsistent with the content generated by : When I use the speculative mode and prompt_length+output_length > 2048, the error occurs HOT 1
- [Bug]: Qwen2 MoE: AttributeError: 'MergedColumnParallelLinear' object has no attribute 'weight'. Did you mean: 'qweight'? HOT 2
- [Bug]: with `--enable-prefix-caching` , `/completions` crashes server with `echo=True` above certain prompt length HOT 2
- [RFC]: Refactor MoE
- [Bug]: TorchSDPAMetadata is out of date HOT 2
- [Bug]: Multi GPU setup for VLLM in Openshift still does not work HOT 15
- [Bug]: Falcon fails if `trust_remote_code=True`
- [Bug]: load nvidia/Llama3-ChatQA-1.5-8B model 15 min HOT 4
- [Bug]: Docker image starts vllm.entrypoints.openai.api_server , Docker opens port 8000 but vllm isn't listening on 8000 HOT 2
- [Bug]: 8 GPU setup - vLLM can only start with --tensor-parallel-size=2 but not 4 or 8
- [Bug]: RuntimeError: CUDA error: an illegal memory access was encountered
- [Usage]: Resolve: ModuleNotFoundError: No module named 'vllm.model_executor.parallel_utils' HOT 2
- 0.4.3 error CUDA error: an illegal memory access was encountered HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vllm.