0

LLM Code Assistant with OpenVINO™

This notebook demonstrates how to use code-specialized Large Language Models for practical coding tasks, running locally on Intel hardware with OpenVINO™.

Example · مثال

Content

LLM Code Assistant with OpenVINO™

This notebook demonstrates how to use code-specialized Large Language Models for practical coding tasks, running locally on Intel hardware with OpenVINO™.

Notebook Contents

We use code-specialized models from the Qwen2.5-Coder (7B–14B) and Qwen3-Coder families with the high-performance openvino-genai inference library. Pre-converted OpenVINO models are downloaded from the OpenVINO collection on HuggingFace when available; otherwise, models are converted locally using Optimum Intel.

Demonstrations include:

  • Bug Detection & Code Correction — fix multiple bugs in Python functions with automatic test verification.
  • Interactive Web App Generation — generate a functional Snake game from a short prompt, playable in the notebook.
  • Security Audit Agent — agentic workflow to find vulnerabilities (SQL injection, hardcoded credentials, path traversal, command injection), fix them, and self-correct via AST verification.
  • Codebase Explorer Agent — agentic workflow where the model autonomously explores a GitHub repository, decides which files to fetch, and builds a comprehensive analysis.
  • Interactive Chat — pair-program with the code assistant via a Gradio interface.

Installation Instructions

This is a self-contained example that relies solely on its own code.

We recommend running the notebook in a virtual environment. You only need a Jupyter server to start. For details, please refer to Installation Guide.

Source and license

Source
Intel OpenVINO Notebooks
Original
openvinotoolkit/openvino_notebooks/notebooks/llm-code-assistant
License
Apache-2.0