Fix
This commit is contained in:
parent
c8418a87e6
commit
65aaa0b01c
2 changed files with 4 additions and 4 deletions
|
|
@ -124,7 +124,7 @@ from .import_fixes import (
|
|||
patch_ipykernel_hf_xet,
|
||||
patch_trackio,
|
||||
patch_datasets,
|
||||
patch_enable_input_require_grads,
|
||||
# patch_enable_input_require_grads,
|
||||
fix_openenv_no_vllm,
|
||||
)
|
||||
|
||||
|
|
@ -135,7 +135,7 @@ ignore_logger_messages()
|
|||
patch_ipykernel_hf_xet()
|
||||
patch_trackio()
|
||||
patch_datasets()
|
||||
patch_enable_input_require_grads()
|
||||
# patch_enable_input_require_grads()
|
||||
fix_openenv_no_vllm()
|
||||
|
||||
del fix_xformers_performance_issue
|
||||
|
|
|
|||
|
|
@ -386,8 +386,8 @@ def fix_openenv_no_vllm():
|
|||
text = f.read()
|
||||
bad = (
|
||||
"if is_vllm_available():\n"
|
||||
"from vllm import SamplingParams\n"
|
||||
"from vllm.sampling_params import GuidedDecodingParams\n"
|
||||
" from vllm import SamplingParams\n"
|
||||
" from vllm.sampling_params import GuidedDecodingParams\n"
|
||||
)
|
||||
if bad + "\n" + "\n" in text:
|
||||
text = text.replace(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue