# Llama/Mistral Finetuning for Inference API

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fllama-mistral-finetuning-for-inference-api%2F79452%3E%5C
**Category:** Models\
**Created:** [March 30, 2024, 7:56pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fllama-mistral-finetuning-for-inference-api%2F79452 "2024-03-30T19:56:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas-w](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lucas-w/32/25327_2.png) [@lucas-w](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Flucas-w)%5C
**Post date:** [March 30, 2024, 7:56pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fllama-mistral-finetuning-for-inference-api%2F79452%2F1 "2024-03-30T19:56:19Z")

</div>

I’m trying to finetune Llama (or Mistral) and host it on Inference API.

The code I found online to finetune Llama used Peft but I can’t seem to get it on Inference API, as there’s no obvious buttons on the repo to make calls to it.

Is it because the code uses Peft, and if so, can you direct me to some code that would be Inference API compatible?
