Illegal instruction (core dumped) soon after starting to fit
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 5.1k
- Forks
- 724
- PR merge metrics
- No merged PRs in 30d
Description
This error is somewhat weird and seems to violate docker principles. Here is the explanation for it:
- I installed lightfm in a docker container in machine 1 via pip (have tried both 1.15 and 1.16 version).
- The fit works fine in machine 1 by running it inside the docker container.
- I move the same image to machine 2 and try to run fit there and the error "Illegal instruction (core dumped)" shows up as soon as epoch 0 starts.
- If I enter the docker container and reinstall lightfm in the same image in machine 2 fit starts working fine.
This is similar or exactly the same as https://github.com/lyst/lightfm/issues/559#issuecomment-719418835 and I can't seem to find a solution using pip to make this package work in a docker scenario where the image is built in one machine and then moved to another.
Any idea on how to fix it?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported fit in the transferred Docker image on both machines, using the installation steps and LightFM versions described in the issue. Compare the runtime and build environments, then document a reproducible cause and a pip/Docker-compatible fix for avoiding the illegal instruction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- devops, machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100