Moonglade

Modern Markdown blogging with AI-powered localization and search.

Tag: Ai


Running DeepSeek R1 32B with NPU

This article introduces how to accelerate the inference of the DeepSeek large language model using OpenVINO on a laptop equipped with a Lunar Lake CPU and NPU. The author first points out that running the 32B model using only the CPU results in low performance and lacks practical value. Subsequently, the article details the complete workflow for invoking the NPU for inference via OpenVINO. The key steps include: first, downloading and installing the NPU driver, firmware, and Level Zero components from the official Intel website, and configuring user permissions to access the acceleration device; second, installing dependency libraries such as OpenVINO, ONNX, and Optimum in a Python virtual environment; and finally, verifying that OpenVINO successfully recognizes the NPU device, and then loading the 4-bit DeepSeek model quantized specifically for the OpenVINO format. Testing indicates that although NPU inference speed is significantly better than that of the CPU, the improvement in actual user experience is limited. Overall, this solution provides a feasible path for efficiently deploying large models on edge devices.

Views 6,567
Ai Deepseek Hugging face Lunarlake NPU OpenVINO


Put your data center to work with GPU compute power!

This article details the configuration and deployment process for vGPU in a VMware Horizon environment. First, disable cluster DRS/DPM to prevent migration deadlocks. Then, add Q/C series vGPU devices that support CUDA to the virtual machine in VCenter. When installing GRID drivers on the Linux client, you must use deb/rpm packages instead of the runfile. Configure `gridd.conf` and the license Token, and verify the authorization status using `nvidia-smi`. When installing CUDA, strictly avoid using the system package manager. You must install it via the runfile and uncheck `cuda-driver` to prevent overwriting the GRID drivers. Finally, manually configure the PATH environment variable. To ensure cross-host migration capability, plan the GPU memory splitting scheme in advance (such as 1/8 or 1/3 splits), enable the `vGPU.hotmigrate.enabled` option, and ensure that BIOS settings on all hosts (such as ECC, IO MMU, and SR-IOV) remain consistent. After configuration is complete, you can install cuDNN for AI model training or utilize `h264_nvenc` for video hardware-accelerated encoding. Additionally, the article introduces methods for monitoring temperature via `nvidia-smi` to optimize fan noise, and provides a troubleshooting guide for driver version conflicts, license expiration, and BIOS configuration errors, aiming to help users build a stable and efficient GPU computing environment.

Views 961
Ai CUDA NVIDIA Python Server Tesla Ubuntu VMware Vsphere vGPU

Self-host an AI image generation system (based on Stable Diffusion) for your friends

This article introduces advanced usage tips for Stable Diffusion and secure deployment strategies. First, leveraging the PNG Info feature allows you to quickly view and reuse the specific parameters used during image generation; it is recommended to experiment with different combinations of Checkpoints and LoRAs to master stylistic patterns. Second, to address the security risks of exposing local services to the public internet, the article proposes a simplified yet secure UI configuration strategy: disabling VENV to reduce deployment complexity, installing xformers to optimize performance, and modifying startup parameters to hide sensitive directories. Core security measures include using config.json to disable dangerous tabs such as Settings and Train, utilizing ui-config.json to restrict batch generation, fix prompts, and hide the negative prompt input box, thereby preventing resource abuse and the generation of non-compliant content, while simultaneously using user.css to hide irrelevant buttons and simplify the interface. Finally, it is recommended to use FRPC in conjunction with a Caddy reverse proxy to securely expose the service to the public internet, enabling encrypted communication and automatic TLS certificate management, ensuring that friends can conveniently access your AI painting service while protecting privacy and data security.

Views 382
Ai Self hosting Server Stable Diffusion Tune Web