Skip to content

Commit 9e78979

Browse files
authored
Merge branch 'master' into agentic_updates
2 parents 4353368 + ed837e4 commit 9e78979

File tree

5 files changed

+125
-12
lines changed

5 files changed

+125
-12
lines changed

README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,23 @@ To read about the latest details and updates on OpenVINO toolkit, visit our [blo
5151
## Contribute
5252
If you want to contribute to OpenVINO toolkit, please read this [article](https://medium.com/openvino-toolkit/how-to-contribute-to-an-ai-open-source-project-c741f48e009e).
5353

54-
## Troubleshooting and Resources
55-
- Open a [discussion topic](https://github.com/openvinotoolkit/openvino_build_deploy/discussions)
56-
- Create an [issue](https://github.com/openvinotoolkit/openvino_build_deploy/issues)
57-
- Learn more about [OpenVINO](https://www.intel.com/content/www/us/en/developer/tools/openvino-toolkit/overview.html)
58-
- Explore [OpenVINO’s documentation](https://docs.openvino.ai/home.html)
54+
## Troubleshooting
55+
56+
First, please verify that you have followed the instructions in the project's README. Then, being in the `ai_ref_kit/demo` directory, run the following to check the environment and all the packages:
57+
58+
```bash
59+
python ../../check_project_env.py
60+
```
61+
62+
See if no packages are missing and all the versions are correct. If you still have issues, please try:
63+
64+
- Opening a [discussion topic](https://github.com/openvinotoolkit/openvino_build_deploy/discussions)
65+
- Creating an [issue](https://github.com/openvinotoolkit/openvino_build_deploy/issues)
66+
67+
And learn more by:
68+
69+
- Reading about [OpenVINO](https://www.intel.com/content/www/us/en/developer/tools/openvino-toolkit/overview.html)
70+
- Exploring [OpenVINO’s documentation](https://docs.openvino.ai/home.html)
5971

6072
## Team
6173

ai_ref_kits/agentic_multimodal_travel_planer/download_and_run_models_Windows.bat

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,8 @@ REM Start LLM service
186186
REM --port = gRPC, --rest_port = HTTP REST (chat/completions). Agents use HTTP, so REST must be on LLM_PORT.
187187
echo Starting LLM service (REST on %LLM_PORT%, gRPC on 8011)...
188188
set LLM_GRPC_PORT=8011
189-
set LLM_TOOL_PARSER=hermes3
190-
echo %LLM_MODEL% | findstr /I "TinyLlama" >nul && set LLM_TOOL_PARSER=llama3
191-
set LLM_ARGS=--port %LLM_GRPC_PORT% --rest_port %LLM_PORT% --model_repository_path "%MODELS_DIR%" --source_model "%LLM_MODEL%" --tool_parser %LLM_TOOL_PARSER% --cache_size 0 --task text_generation
192-
if not "%LLM_DEVICE%"=="" set LLM_ARGS=%LLM_ARGS% --target_device %LLM_DEVICE%
189+
set LLM_ARGS=--port %LLM_GRPC_PORT% --rest_port %LLM_PORT% --model_repository_path "%MODELS_DIR%" --source_model "%LLM_MODEL%" --tool_parser hermes3 --cache_size 0 --task text_generation
190+
if not "%TARGET_DEVICE%"=="" set LLM_ARGS=%LLM_ARGS% --target_device %TARGET_DEVICE%
193191
REM Use PowerShell Start-Process to launch detached
194192
powershell -Command "Start-Process -FilePath '%OVMS_PATH%' -ArgumentList '%LLM_ARGS%' -RedirectStandardOutput '%LOGS_DIR%\ovms_llm.log' -RedirectStandardError '%LOGS_DIR%\ovms_llm.err' -WindowStyle Hidden" || (echo Failed to start LLM service && exit /b 1)
195193
ping -n 3 127.0.0.1 >nul

check_project_env.py

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
import sys
2+
import platform
3+
import importlib
4+
from pathlib import Path
5+
6+
print("\n===== OpenVINO Environment Diagnostic =====\n")
7+
8+
# ------------------ SYSTEM INFO ------------------
9+
print("System Information")
10+
print("------------------")
11+
print("OS:", platform.system(), platform.release())
12+
print("Machine:", platform.machine())
13+
print("Processor:", platform.processor())
14+
15+
# ------------------ PYTHON INFO ------------------
16+
print("\nPython Information")
17+
print("------------------")
18+
print("Python version:", sys.version)
19+
20+
# ------------------ OPENVINO INFO ------------------
21+
print("\nOpenVINO Information")
22+
print("------------------")
23+
24+
try:
25+
import openvino as ov
26+
core = ov.Core()
27+
print("OpenVINO version:", ov.__version__)
28+
print("Available devices:")
29+
for device in core.available_devices:
30+
print(" -", device)
31+
except Exception as e:
32+
print("OpenVINO check failed:", e)
33+
34+
# ------------------ PACKAGE CHECK ------------------
35+
print("\nPackage Check")
36+
print("------------------")
37+
38+
req_file = Path("requirements.txt")
39+
40+
# mapping pip names → import names
41+
IMPORT_MAP = {
42+
"pillow": "PIL",
43+
"opencv-python": "cv2",
44+
"optimum-intel": "optimum",
45+
}
46+
47+
def parse_line(line):
48+
"""Extract package name + required version"""
49+
if "==" in line:
50+
name, version = line.split("==")
51+
elif ">=" in line:
52+
name, version = line.split(">=")
53+
else:
54+
name, version = line, None
55+
56+
name = name.strip()
57+
version = version.strip() if version else None
58+
59+
# remove extras like qrcode[pil]
60+
name = name.split("[")[0]
61+
62+
return name, version
63+
64+
if req_file.exists():
65+
packages = []
66+
67+
with open(req_file) as f:
68+
for line in f:
69+
line = line.strip()
70+
71+
if not line or line.startswith("#"):
72+
continue
73+
74+
if line.startswith("--"):
75+
continue
76+
77+
pkg_name, req_version = parse_line(line)
78+
packages.append((pkg_name, req_version))
79+
80+
for pkg, req_version in packages:
81+
module_name = IMPORT_MAP.get(pkg, pkg.replace("-", "_"))
82+
83+
try:
84+
module = importlib.import_module(module_name)
85+
86+
# try to get installed version
87+
installed_version = getattr(module, "__version__", None)
88+
89+
if req_version and installed_version:
90+
if installed_version.startswith(req_version):
91+
print(f"{pkg} ✔ installed ({installed_version})")
92+
else:
93+
print(f"{pkg} ⚠ version mismatch (installed: {installed_version}, required: {req_version})")
94+
else:
95+
print(f"{pkg} ✔ installed")
96+
97+
except ImportError:
98+
print(f"{pkg} ❌ missing")
99+
100+
else:
101+
print("No requirements.txt found.")
102+
103+
print("\n===========================================\n")

demos/the_narrator_demo/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--extra-index-url https://download.pytorch.org/whl/cpu
22

3-
openvino==2025.4.0
4-
openvino-genai==2025.4.0
3+
openvino==2026.0.0
4+
openvino-genai==2026.0.0
55
huggingface-hub==0.34.4
66
numpy==2.2.6
77
opencv-python==4.11.0.86

demos/theme_demo/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
openvino==2025.4
1+
openvino==2026.0.0
22
opencv-python==4.10.0.84
33
numpy==2.2.6
44
scipy==1.15.3

0 commit comments

Comments
 (0)