Close Menu
techwavedispatch.com

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Binary and Scalar Embedding Quantization for Significantly Faster & Cheaper Retrieval

    November 12, 2026

    Ring says its camera drone won’t have manual controls after demo crash

    November 12, 2026

    Unified interface for Zero-Shot vision models in robotics

    November 12, 2026
    Facebook X (Twitter) Instagram
    Trending
    • Binary and Scalar Embedding Quantization for Significantly Faster & Cheaper Retrieval
    • Ring says its camera drone won’t have manual controls after demo crash
    • Unified interface for Zero-Shot vision models in robotics
    • Bringing serverless GPU inference to Hugging Face users
    • Alex Karp Said He’s a ‘Progressive.’ OK! Here’s Some Other Stuff He’s Said Recently
    • Blazing Fast SetFit Inference with 🤗 Optimum Intel on Xeon
    • Rocco Super Smart Fridge Review: A Cool Conversation Piece
    • Text2SQL using Hugging Face Dataset Viewer API and Motherduck DuckDB-NSQL-7B
    Facebook X (Twitter) Instagram
    techwavedispatch.com
    Subscribe
    Thursday, November 12
    • Home
    • AI Tools & Software
    • Machine Learning
    • Generative AI
    • Robotics & Automation
    • Future Tech & Hardware
    • AI in Business
    • Ethics & Regulations
    • More
      • Gadgets & Smart Devices
      • Cybersecurity & AI
      • Tech Breakthroughs
    techwavedispatch.com
    Home»AI Tools & Software»Serverless Inference with Hugging Face and NVIDIA NIM
    AI Tools & Software

    Serverless Inference with Hugging Face and NVIDIA NIM

    adminBy adminNovember 11, 2026No Comments5 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Serverless Inference with Hugging Face and NVIDIA NIM
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Update: This service is deprecated and no longer available as of April 10th, 2025. For an alternative, you should consider Inference Providers

    Today, we are thrilled to announce the launch of Hugging Face NVIDIA NIM API (serverless), a new service on the Hugging Face Hub, available to Enterprise Hub organizations. This new service makes it easy to use open models with the accelerated compute platform, of NVIDIA DGX Cloud accelerated compute platform for inference serving. We built this solution so that Enterprise Hub users can easily access the latest NVIDIA AI technology in a serverless way to run inference on popular Generative AI models including Llama and Mistral, using standardized APIs and a few lines of code within the Hugging Face Hub.

    Thumbnail



    Serverless Inference powered by NVIDIA NIM

    This new experience builds on our collaboration with NVIDIA to simplify the access and use of open Generative AI models on NVIDIA accelerated computing. One of the main challenges developers and organizations face is the upfront cost of infrastructure and the complexity of optimizing inference workloads for LLM. With Hugging Face NVIDIA NIM API (serverless), we offer an easy solution to these challenges, providing instant access to state-of-the-art open Generative AI models optimized for NVIDIA infrastructure with a simple API for running inference. The pay-as-you-go pricing model ensures that you only pay for the request time you use, making it an economical choice for businesses of all sizes.

    NVIDIA NIM API (serverless) complements Train on DGX Cloud, an AI training service already available on Hugging Face.



    How it works

    Running serverless inference with Hugging Face models has never been easier. Here’s a step-by-step guide to get you started:

    Note: You need access to an Organization with a Hugging Face Enterprise Hub subscription to run Inference.

    Before you begin, ensure you meet the following requirements:

    1. You are member of an Enterprise Hub organization.
    2. You have created a fine-grained token for your organization. Follow the steps below to create your token.



    Create a Fine-Grained Token

    Fine-grained tokens allow users to create tokens with specific permissions for precise access control to resources and namespaces. First, go to Hugging Face Access Tokens and click on “Create new Token” and select “fine-grained”.

    Create Token

    Enter a “Token name” and select your Enterprise organization in “org permissions” as scope and then click “Create token”. You don’t need to select any additional scopes.

    Scope Token

    Now, make sure to save this token value to authenticate your requests later.



    Find your NIM

    You can find “NVIDIA NIM API (serverless)” on the model page of supported Generative AI models. You can find all supported models in this NVIDIA NIM Collection, and in the Pricing section.

    We will use the meta-llama/Meta-Llama-3-8B-Instruct. Go the meta-llama/Meta-Llama-3-8B-Instruct model card open “Deploy” menu, and select “NVIDIA NIM API (serverless)” – this will open an interface with pre-generated code snippets for Python, Javascript or Curl.

    inference-modal



    Send your requests

    NVIDIA NIM API (serverless) is standardized on the OpenAI API. This allows you to use the openai' sdk for inference. Replace the YOUR_FINE_GRAINED_TOKEN_HERE with your fine-grained token and you are ready to run inference.

    from openai import OpenAI
    
    client = OpenAI(
        base_url="https://huggingface.co/api/integrations/dgx/v1",
        api_key="YOUR_FINE_GRAINED_TOKEN_HERE"
    )
    
    chat_completion = client.chat.completions.create(
        model="meta-llama/Meta-Llama-3-8B-Instruct",
        messages=[
            {"role": "system", "content": "You are a helpful assistant."},
            {"role": "user", "content": "Count to 500"}
        ],
        stream=True,
        max_tokens=1024
    )
    
    
    for message in chat_completion:
        print(message.choices[0].delta.content, end='')
    

    Congrats! 🎉 You can now start building your Generative AI applications using open models. 🔥

    NVIDIA NIM API (serverless) currently only supports the chat.completions.create and models.list API. We are working on extending this while adding more models. The models.list can be used to check which models are currently available for Inference.

    models = client.models.list()
    for m in models.data:
        print(m.id)
    



    Supported Models and Pricing

    Usage of Hugging Face NVIDIA NIM API (serverless) is billed based on the compute time spent per request. We exclusively use NVIDIA H100 Tensor Core GPUs, which are priced at $8.25 per hour. To make this easier to understand for per-request pricing, we can convert this to a per-second.

    $8.25 per hour = $0.0023 per second (rounded to 4 decimal places)

    The total cost for a request will depend on the model size, the number of GPUs required, and the time taken to process the request. Here’s a breakdown of our current model offerings, their GPU requirements, typical response times, and estimated cost per request:

    Model ID Number of NVIDIA H100 GPUs Typical Response Time (500 input tokens, 100 output tokens) Estimated Cost per Request
    meta-llama/Meta-Llama-3-8B-Instruct 1 1 seconds $0.0023
    meta-llama/Meta-Llama-3-70B-Instruct 4 2 seconds $0.0184
    meta-llama/Meta-Llama-3.1-405B-Instruct-FP8 8 5 seconds $0.0917

    Usage fees accrue to your Enterprise Hub Organizations’ current monthly billing cycle. You can check your current and past usage at any time within the billing settings of your Enterprise Hub Organization.

    Supported Models



    Accelerating AI Inference with NVIDIA TensorRT-LLM

    We are excited to continue our collaboration with NVIDIA to push the boundaries of AI inference performance and accessibility. A key focus of our ongoing efforts is the integration of the NVIDIA TensorRT-LLM library into Hugging Face’s Text Generation Inference (TGI) framework.

    We’ll be sharing more details, benchmarks, and best practices for using TGI with NVIDIA TensorRT-LLM in the near future. Stay tuned for more exciting developments as we continue to expand our collaboration with NVIDIA and bring more powerful AI capabilities to developers and organizations worldwide!

    Face Hugging Inference NIM Nvidia Serverless
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    admin
    • Website

    Related Posts

    Binary and Scalar Embedding Quantization for Significantly Faster & Cheaper Retrieval

    November 12, 2026

    Unified interface for Zero-Shot vision models in robotics

    November 12, 2026

    Bringing serverless GPU inference to Hugging Face users

    November 12, 2026
    Leave A Reply Cancel Reply

    Top Posts

    NVIDIA Is Investigating Reports That CEO Jensen Huang Was The Target Of Chinese Spy Efforts

    November 8, 202619 Views

    Anthropic releases new Mythos and Fable models amid RSI concerns

    November 9, 20265 Views

    Efficient Vision-Language-Action Model trained on Lerobot Community Data

    November 10, 20264 Views

    Does a Trading Policy Need to Know What It Trades? Microstructure Invariance and Zero-Shot Transfer of Execution Policies

    November 9, 20264 Views
    Don't Miss
    AI Tools & Software

    Binary and Scalar Embedding Quantization for Significantly Faster & Cheaper Retrieval

    By adminNovember 12, 20260

    We introduce the concept of embedding quantization and showcase their impact on retrieval speed, memory…

    Ring says its camera drone won’t have manual controls after demo crash

    November 12, 2026

    Unified interface for Zero-Shot vision models in robotics

    November 12, 2026

    Bringing serverless GPU inference to Hugging Face users

    November 12, 2026
    About Us

    Welcome to TechWave Dispatch

    At TechWave Dispatch, we bring you the latest news, insights, and developments from the ever-evolving world of technology. Our mission is to keep readers informed about the innovations shaping our digital future.

    From artificial intelligence and machine learning to cybersecurity, robotics, smart devices, and groundbreaking technologies, we cover the topics that matter in today's fast-moving tech landscape.

    Our Picks

    Binary and Scalar Embedding Quantization for Significantly Faster & Cheaper Retrieval

    November 12, 2026

    Ring says its camera drone won’t have manual controls after demo crash

    November 12, 2026

    Unified interface for Zero-Shot vision models in robotics

    November 12, 2026
    Most Popular

    Who Controls Scientific Discovery? – O’Reilly

    November 6, 20260 Views

    After blocking Muse, Amazon now lets users text Alexa to help them shop

    November 6, 20260 Views

    A controlled world for robot learning and evaluation

    November 6, 20260 Views
    Facebook X (Twitter) Instagram Pinterest
    • Terms and Conditions
    • Privacy Policy
    • Contact Us
    • About Us
    © 2026 TechWave Dispatch. All Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.