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

Can this project run on non-Apple chips? #3

Open
blackblue9 opened this issue Feb 26, 2024 · 1 comment
Open

Can this project run on non-Apple chips? #3

blackblue9 opened this issue Feb 26, 2024 · 1 comment

Comments

@blackblue9
Copy link

blackblue9 commented Feb 26, 2024

Can this project run on non-Apple chips? My environment is NVIDIA's A800 because I saw that the mlx library used by the project is designed for Apple chips and systems.

I can get the moe model file after running the moe.py code, but problems occur when running inference.py and lora.py, such as when running the lora code:

`
python lora.py

Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
Total parameters 16389.249M
Trainable parameters 10.487M
Starting training..., iters: 9000
Aborted
`
It stopped for no reason, I don’t know what the problem is.

@mzbac
Copy link
Owner

mzbac commented Feb 26, 2024

I don't think the MLX supports fine-tuning on CUDA. However, since you already have the MOE model which is compatible with Transformers, you can directly fine-tune it using the Hugging Face TRL library. FYI: https://huggingface.co/docs/trl/en/sft_trainer#quickstart

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

2 participants