# How to run Phi-1\_5 on cpu?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-run-phi-1-5-on-cpu%2F55459%3E%5C
**Category:** 🤗Transformers\
**Created:** [September 18, 2023, 1:25pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-run-phi-1-5-on-cpu%2F55459 "2023-09-18T13:25:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![szymonrucinski](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/szymonrucinski/32/19602_2.png) [@szymonrucinski](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fszymonrucinski)%5C
**Post date:** [September 18, 2023, 1:25pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-run-phi-1-5-on-cpu%2F55459%2F1 "2023-09-18T13:25:49Z")

</div>

I was wondering how can I run inference on CPU. It is not possible with pytorch and pipelines and Llama CPP. From what I understood it is a mixformers architecture that is not supported. Do you have any ideas?

---

<div class="post-metadata">

**Author:** ![Karras10](https://avatars.discourse-cdn.com/v4/letter/k/779978/32.png) [@Karras10](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FKarras10)%5C
**Post date:** [December 30, 2023, 11:00pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-run-phi-1-5-on-cpu%2F55459%2F2 "2023-12-30T23:00:18Z")

</div>

Hello there! Just bumped into your question while I was Googling Phi model. Right now I’m using Phi 2 on CPU with Rust language and Candle framework. It is slow but it works! You can give it a try if you still can’t manage to run it on CPU.
