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

本站现有博文332篇,共被浏览876036

本站已经建立2583天!

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