Add Dockerfile-cpu-amd for AMD CPU compatibility #638
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR adds a new
Dockerfile-cpu-amd
to resolve Intel MKL compatibility issues on AMD processors, specifically addressing the SGEMM errors reported when running Qwen3 embedding models on AMD CPUs.Problem
Users running text-embeddings-inference on AMD processors encounter Intel MKL errors:
This occurs because Intel MKL is optimized for Intel processors and has compatibility issues with AMD architectures.
Solution
Dockerfile-cpu-amd
: A new specialized Dockerfile following the project's existing pattern (similar toDockerfile-cuda
,Dockerfile-intel
)libomp-dev
) instead of Intel MKLKey Changes
Dockerfile-cpu-amd
- AMD-compatible CPU Dockerfile without Intel MKLTesting
✅ Successfully tested on AMD server - no more Intel MKL errors
Testing Results (from simple shell script)
Ran with concurrency of 3 (so not a lot!)
Total Requests: 100
Successful: 100
Failed: 0
Success Rate: 100.0%
Overall Performance (successful requests):
Average Response Time: 3.690 seconds
Median Response Time: 4.000 seconds
Min Response Time: 1.000 seconds
Max Response Time: 6.000 seconds
Performance by Text Length:
Short (1 word) ( 1 tokens):
Count: 20, Avg: 4.350s, Min: 3.000s, Max: 5.000s
Medium (3 words) ( 3 tokens):
Count: 20, Avg: 3.600s, Min: 1.000s, Max: 4.000s
Question (13 words) ( 12 tokens):
Count: 20, Avg: 2.600s, Min: 2.000s, Max: 4.000s
Paragraph (47 words) ( 42 tokens):
Count: 20, Avg: 3.100s, Min: 2.000s, Max: 6.000s
Long text (95 words) ( 74 tokens):
Count: 20, Avg: 4.800s, Min: 4.000s, Max: 6.000s
Total Test Duration: 126.00 seconds
Requests per Second: 0.79
Total Tokens Processed: 2640
Tokens per Second: 20.95
Note: most time is spent queueing.
Fixes #636
Before submitting
Who can review?
@OlivierDehaene @Narsil
This follows the project's existing pattern of specialized Dockerfiles and provides a clean solution for AMD CPU compatibility without affecting existing functionality.