Performance Optimization Methodology
Model response speed depends on device GPU performance and browser resource allocation, and can be improved in the following ways:
Operation Guide
- Hardware acceleration configurationChrome Settings→System→Enable "Use Hardware Acceleration".
- Resource Priority Setting: Set WebGPU process to high priority in browser task manager (Shift+Esc)
- Optimization of computational parameters: Reduce the value of the max_new_tokens parameter (may be open in future versions)
- Environmental Isolation Program: Close other web pages/plug-ins that consume GPU resources
advanced program
Developers can force a GPU device to be specified by modifying the devicePreference in the transformers.js configuration, or use OffscreenCanvas for background rendering.
This answer comes from the articleDeepSeek-R1 WebGPU: Run DeepSeek R1 1.5B locally in your browser!The































