EADST

ONNX Set Device ID with CUDA

ONNX Set the Device ID with CUDA

import onnxruntime as ort

model_path = ''

providers = [
    ('CUDAExecutionProvider', {
        'device_id': 0,
        'arena_extend_strategy': 'kNextPowerOfTwo',
        'gpu_mem_limit': 2 * 1024 * 1024 * 1024,
        'cudnn_conv_algo_search': 'EXHAUSTIVE',
        'do_copy_in_default_stream': True,
    }),
    'CPUExecutionProvider',
]

session = ort.InferenceSession(model_path, providers=providers)

Reference:

CUDA Execution Provider

相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
Clash Proxy C++ hf LoRA Paddle ONNX Google Python 论文速读 Search Hilton Cloudreve Michelin Hotel Pillow Shortcut UI FP8 COCO tar Streamlit XGBoost Miniforge SVR FP16 Vmess CAM FP64 GoogLeNet Land Nginx git RGB Distillation JSON MD5 Attention 搞笑 News Firewall logger YOLO HuggingFace Quantize Breakpoint scipy Input Food Logo Agent SPIE TensorRT TSV uwsgi Rebuttal v2ray printf FP32 BTC Docker Tracking Ptyhon Baidu Template Jetson 图形思考法 图标 CTC Django 继承 关于博主 Plate icon 签证 Transformers Bitcoin SQL Knowledge QWEN Zip Mixtral CUDA Jupyter PDF 顶会 SAM HaggingFace CV CC Heatmap Safetensors 飞书 API NLTK v0.dev 报税 Tensor Gemma SQLite GGML GPT4 Diagram Crawler 腾讯云 Datetime LeetCode Random FastAPI Hungarian 算法题 PyCharm PIP CEIR Windows RL IndexTTS2 多线程 Color Disk llama.cpp Domain OCR Sklearn Statistics Bipartite EXCEL PDB UNIX Ubuntu Pickle Augmentation 公式 Git 财报 AI Markdown ms-swift torchinfo Linux Animate git-lfs mmap ModelScope transformers Base64 Password LLM 强化学习 Freesound Web TTS 云服务器 Plotly 论文 WAN LLAMA Qwen DeepStream LaTeX 证件照 Magnet FlashAttention VGG-16 Llama tqdm OpenAI Algorithm 音频 GIT 域名 Card uWSGI Qwen2 Bin Bert CLAP 阿里云 BF16 Vim Interview Excel Review XML CSV ResNet-50 BeautifulSoup Tiktoken DeepSeek PyTorch 第一性原理 Numpy 递归学习法 InvalidArgumentError Quantization RAR Data GPTQ TensorFlow Translation Website Paper Pandas Use Video Math WebCrawler Image2Text 多进程 VSCode VPN Claude Permission ChatGPT diffusers NLP Pytorch 净利润 NameSilo Github OpenCV Qwen2.5 Anaconda Dataset 版权 Conda
站点统计

本站现有博文333篇,共被浏览922616

本站已经建立2628天!

热门文章
文章归档
回到顶部