Coder Social home page Coder Social logo

Comments (3)

mudler avatar mudler commented on September 25, 2024

@Anto79-ops from your logs looks like you are actually building the image rather then pulling it.

Can you share your docker-compose file?

from localai.

Anto79-ops avatar Anto79-ops commented on September 25, 2024

Good day, @mudler it might have been a server error, i tried to again and it finished the download and it is now working. My docker compose file is below, if you wanted to see it anyways.

version: '3.9'

services:
  api:
    # See https://localai.io/basics/getting_started/#container-images for
    # a list of available container images (or build your own with the provided Dockerfile)
    # Available images with CUDA, ROCm, SYCL
    # Image list (quay.io): https://quay.io/repository/go-skynet/local-ai?tab=tags
    # Image list (dockerhub): https://hub.docker.com/r/localai/localai
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 2
              capabilities: ["gpu"]
    image: quay.io/go-skynet/local-ai:master-cublas-cuda12-ffmpeg
    build:
      context: .
      dockerfile: Dockerfile
      args:
      - IMAGE_TYPE=core
      - BASE_IMAGE=ubuntu:22.04
    ports:
      - 8080:8080
    env_file:
      - .env
    environment:
      - MODELS_PATH=/models
      - DEBUG=true
    volumes:
      - /home/antonio/scratch/localai_models:/models
      - ./images/:/tmp/generated/images/
    command:
    # Here we can specify a list of models to run (see quickstart https://localai.io/basics/getting_started/#running-models )
    # or an URL pointing to a YAML configuration file, for example:
    # - https://gist.githubusercontent.com/mudler/ad601a0488b497b69ec549150d9edd18/raw/a8a8869ef1bb7e3830bf5c0bae29a0cce991ff8d/phi-2.yaml
    - phi-2

there is one (maybe unrelated) error in the log about failled authority 509, which could be my firewall. Is there a way to make downloads for LocalAI ignore these certificate requiremets etc? thanks

3:04PM INF loading environment variables from file envFile=.env
3:04PM INF Setting logging to debug
3:04PM INF Starting LocalAI using 2 threads, with models path: /models
3:04PM INF LocalAI version: 0e54942 (0e549424e782e315ee166efdb1cba77a1a4a750b)
3:04PM DBG [startup] resolved model to download: github://mudler/LocalAI/examples/configurations/phi-2.yaml@master
3:04PM INF Downloading "https://raw.githubusercontent.com/mudler/LocalAI/master/examples/configurations/phi-2.yaml"
3:04PM ERR error downloading model error="failed to download file \"/models/1701d57f28d47552516c2b6ecc3cc719.yaml\": Get \"https://raw.githubusercontent.com/mudler/LocalAI/master/examples/configurations/phi-2.yaml\": tls: failed to verify certificate: x509: certificate signed by unknown authority" filepath=/models/1701d57f28d47552516c2b6ecc3cc719.yaml url=github://mudler/LocalAI/examples/configurations/phi-2.yaml@master
3:04PM INF Preloading models from /models

from localai.

localai-bot avatar localai-bot commented on September 25, 2024

Good day, @Anto79-ops. Thank you for providing the additional information. It seems that the issue you encountered was indeed a server error, as you were able to successfully pull the image after a few attempts.

Regarding your question about ignoring certificate requirements during downloads for LocalAI, you can disable certificate verification by adding --insecure-registry flag when pulling the Docker image. In your case, if you are pulling from Quay.io, you can use the following command:

docker pull --insecure-registry quay.io/go-skynet/local-ai:master-cublas-cuda12-ffmpeg

This command will bypass the certificate verification for the specified registry during the image pull process.

As for the 4fadada67c94 failure during the download of the v2.12.4-cublas-cuda12-ffmpeg image, it appears to be a networking or connectivity issue. The error message indicates that the download stopped and started repeatedly before eventually failing at 100%. This could be due to network congestion, intermittent connectivity issues, or a temporary server problem. I would recommend trying again after some time or contacting the Quay.io support if the issue persists.

If you have any further questions or issues, please let me know.

from localai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.