Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova committed Nov 27, 2024
1 parent 0b696e1 commit 1cfdd86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions check_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ def kernel_check():
OPENVINO_IMPORT = False



print("System information:")
print(f"Python executable: {PYTHON_EXECUTABLE}")
print(f"Pip version: {PIP_VERSION}")
Expand Down Expand Up @@ -177,9 +176,7 @@ def kernel_check():

if not DEVTOOLS_INSTALLED:
print()
print(
"OpenVINO development tools are not installed in this Python environment. \n" "Please follow the instructions in the README to install `openvino`\n"
)
print("OpenVINO development tools are not installed in this Python environment. \n" "Please follow the instructions in the README to install `openvino`\n")

if not NO_BROKEN_REQUIREMENTS:
print()
Expand Down
2 changes: 1 addition & 1 deletion notebooks/janus-multimodal-generation/ov_janus_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def convert_janus_model(model_id, output_dir, quantization_config):
processor: VLChatProcessor = VLChatProcessor.from_pretrained(model_id)
config = AutoConfig.from_pretrained(model_id, trust_remote_code=True)
language_config = config.language_config
language_config._attn_implementation = 'sdpa'
language_config._attn_implementation = "sdpa"
vl_gpt: MultiModalityCausalLM = AutoModelForCausalLM.from_pretrained(model_id, language_config=language_config, trust_remote_code=True)
vl_gpt = vl_gpt.eval()
vl_gpt.config.save_pretrained(output_dir)
Expand Down

0 comments on commit 1cfdd86

Please sign in to comment.