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

本站现有博文328篇,共被浏览851185

本站已经建立2558天!

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