# Finetuning a small LLM on 32GB, 4vCPU

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffinetuning-a-small-llm-on-32gb-4vcpu%2F97073%3E%5C
**Category:** 🤗Transformers\
**Created:** [July 12, 2024, 10:50pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffinetuning-a-small-llm-on-32gb-4vcpu%2F97073 "2024-07-12T22:50:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pr12431](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pr12431/32/29296_2.png) [@pr12431](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fpr12431)%5C
**Post date:** [July 12, 2024, 10:50pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffinetuning-a-small-llm-on-32gb-4vcpu%2F97073%2F1 "2024-07-12T22:50:51Z")

</div>

Is it possible to use microsoft/Phi-3-mini-4k-instruct with vCPU (I have a i3.xlarge databricks cluster at work with 4vCPU and 32GB memory)? I think it says this implementation uses flash attention, so I was trying to download microsoft/Phi-3-mini-4k-instruct-onnx instead. I have a few errors there, but just want to double check I am using the correct implementation and can just set the device\_map to “auto” or “cpu” when I don’t have a GPU instance.

the background was I was trying to finetune an open source model, but without a GPU it seems like a pain…
