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

本站现有博文338篇,共被浏览979234次

本站已经建立2692天!

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