Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolving Docker Image Pull Error for huggingface/text-generation-inference #18

Open
HydraTechnologies-ops opened this issue Aug 24, 2024 · 2 comments

Comments

@HydraTechnologies-ops
Copy link

If you're encountering an error while pulling the latest tag of the huggingface/text-generation-inference Docker image, follow these steps to resolve it:

Steps to Fix

  1. Find the Specific Version:

  2. Update the spec.yaml File:

    • Navigate to your spec.yaml file and locate the environment section (line 21).
    • Replace latest with the specific version or SHA. For example, update it as follows:
      environment:
        base:
          registry: ghcr.io
          image: huggingface/text-generation-inference:sha-f3c5d7d@sha256:7c169c536de65dbdb867302aedf9ad0a7472df5d7c7dfd85c080037215b18c16
          build_timestamp: "20231011102429"
          name: TGI
          supported_architectures:
          - amd64
          cuda_version: "11.8"
          description: The huggingface text-generation-interface base container
          entrypoint_script: ""
  3. Clear Cache and Rebuild:

    • On the NVIDIA AI Workstation, click on "Clear cache and build" to rebuild the container with the correct image version.

This process should resolve the issue and allow you to successfully pull and use the desired Docker image.


@fauziyasin
Copy link

If you're encountering an error while pulling the latest tag of the huggingface/text-generation-inference Docker image, follow these steps to resolve it:

Steps to Fix

  1. Find the Specific Version:

  2. Update the spec.yaml File:

    • Navigate to your spec.yaml file and locate the environment section (line 21).
    • Replace latest with the specific version or SHA. For example, update it as follows:
      environment:
      base:
      registry: ghcr.io
      image: huggingface/text-generation-inference:sha-f3c5d7d@sha256:7c169c536de65dbdb867302aedf9ad0a7472df5d7c7dfd85c080037215b18c16
      build_timestamp: "20231011102429"
      name: TGI
      supported_architectures:
      - amd64
      cuda_version: "11.8"
      description: The huggingface text-generation-interface base container
      entrypoint_script: ""
  3. Clear Cache and Rebuild:

    • On the NVIDIA AI Workstation, click on "Clear cache and build" to rebuild the container with the correct image version.

This process should resolve the issue and allow you to successfully pull and use the desired Docker image.

@arsentievalex
Copy link

is there a compatible version for linux/arm64? I'm having the below error:

1 warning found (use docker --debug to expand):
 - InvalidBaseImagePlatform: Base image ghcr.io/huggingface/text-generation-inference:sha-f3c5d7d@sha256:7c169c536de65dbdb867302aedf9ad0a7472df5d7c7dfd85c080037215b18c16 was pulled with platform "linux/amd64", expected "linux/arm64" for current build (line 1)
Containerfile:67

omihub777 added a commit to omihub777/workbench-example-hybrid-rag that referenced this issue Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants