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

Platform Mismatch Error for ARM Platform #12

Open
zzw4257 opened this issue Dec 10, 2024 · 0 comments
Open

Platform Mismatch Error for ARM Platform #12

zzw4257 opened this issue Dec 10, 2024 · 0 comments

Comments

@zzw4257
Copy link

zzw4257 commented Dec 10, 2024

Issue: Platform Mismatch Error for ARM Platform

Description:

I am encountering an error related to platform mismatch when trying to run the application. The requested image platform is linux/amd64, while the host platform is linux/arm64/v8, and no specific platform is requested. Below is the error message I received:

The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

Additionally, the application logs contain the following output:

0.0s
Attaching to app-1, ollama-1
ollama-1  | 2024/12/10 03:23:47 routes.go:1195: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: HTTPS_PROXY: HTTP_PROXY: NO_PROXY: OLLAMA_DEBUG:false OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://0.0.0.0:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE:5m0s OLLAMA_KV_CACHE_TYPE: OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:/root/.ollama/models OLLAMA_MULTIUSER_CACHE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:0 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://* vscode-webview://*] OLLAMA_SCHED_SPREAD:false OLLAMA_TMPDIR: ROCR_VISIBLE_DEVICES: http_proxy: https_proxy: no_proxy:]"

Steps to Reproduce:

  1. Attempt to run the app on a machine with /arm64/v8 architecture.
  2. Notice that the platform mismatch occurs, as the requested image is linux/amd64.

Expected Behavior:

The app should be able to detect and handle platform differences, allowing for successful execution on ARM-based platforms, or provide an option to explicitly set the platform.

Environment:

  • Host Platform: linux/arm64/v8
  • Requested Image Platform: linux/amd64
  • Docker Version: Docker version 27.2.0, build 3ab4256
  • OS Version: MacOS 15.2
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

1 participant