Skip to content

Commit 1cfdd86

Browse files
committed
fix code style
1 parent 0b696e1 commit 1cfdd86

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

check_install.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ def kernel_check():
8282
OPENVINO_IMPORT = False
8383

8484

85-
8685
print("System information:")
8786
print(f"Python executable: {PYTHON_EXECUTABLE}")
8887
print(f"Pip version: {PIP_VERSION}")
@@ -177,9 +176,7 @@ def kernel_check():
177176

178177
if not DEVTOOLS_INSTALLED:
179178
print()
180-
print(
181-
"OpenVINO development tools are not installed in this Python environment. \n" "Please follow the instructions in the README to install `openvino`\n"
182-
)
179+
print("OpenVINO development tools are not installed in this Python environment. \n" "Please follow the instructions in the README to install `openvino`\n")
183180

184181
if not NO_BROKEN_REQUIREMENTS:
185182
print()

notebooks/janus-multimodal-generation/ov_janus_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def convert_janus_model(model_id, output_dir, quantization_config):
233233
processor: VLChatProcessor = VLChatProcessor.from_pretrained(model_id)
234234
config = AutoConfig.from_pretrained(model_id, trust_remote_code=True)
235235
language_config = config.language_config
236-
language_config._attn_implementation = 'sdpa'
236+
language_config._attn_implementation = "sdpa"
237237
vl_gpt: MultiModalityCausalLM = AutoModelForCausalLM.from_pretrained(model_id, language_config=language_config, trust_remote_code=True)
238238
vl_gpt = vl_gpt.eval()
239239
vl_gpt.config.save_pretrained(output_dir)

0 commit comments

Comments
 (0)