> ## Documentation Index
> Fetch the complete documentation index at: https://docs.muna.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Compiling Huggingface Models

> Compile models from Huggingface with zero code.

Muna is the easiest way to run arbitrary models from Huggingface.

## Using our Compiler Agent in Slack

Simply [join our Slack](https://muna.ai) and ask Cursor to compile a model, providing a link to the Huggingface repo:

<Frame caption="Asking our agent to compile a HF model.">
  <img src="https://mintcdn.com/natml/C1AB-ZsK5ZoCZZaQ/images/slack-compile.png?fit=max&auto=format&n=C1AB-ZsK5ZoCZZaQ&q=85&s=3c63f4c91cb8e6952a8fa5aff2ac7896" alt="Asking our agent to compile a HF model." width="2108" height="1244" data-path="images/slack-compile.png" />
</Frame>

<Tip>
  Our compiler agent is powered by [Agent Skills](https://github.com/muna-ai/agent-skills) that provide detailed instructions on how to write and compile Huggingface models.
</Tip>

The agent will spend anywhere from a few minutes to a few hours writing the required Python inference code for the model, compiling it, and testing that it works:

<Frame caption="HF model successfully compiled by our agent.">
  <img src="https://mintcdn.com/natml/C1AB-ZsK5ZoCZZaQ/images/slack-result.png?fit=max&auto=format&n=C1AB-ZsK5ZoCZZaQ&q=85&s=20d9c6b3076cfe067940e19dd6dbdab5" alt="HF model successfully compiled by our agent." width="1920" height="1820" data-path="images/slack-result.png" />
</Frame>

## Running the Compiled Function

Once compiled, you can run the compiled model anywhere:

<CodeGroup>
  ```ts JavaScript icon="js" theme={null}
  import { Muna } from "muna"

  // 💥 Create your Muna client
  const openai = new Muna({ accessKey: "..." }).beta.openai;

  // 🔥 Make a prediction
  const transcription = await openai.audio.transcriptions.create({
      model: "moonshine/moonshine-base",
      file: audioFile
  });

  // 🚀 Use the results
  console.log(transcription.text);
  ```

  ```py Python icon="python" theme={null}
  from muna import Muna

  # 💥 Create your Muna client
  openai = Muna(access_key="...").beta.openai

  # 🔥 Make a prediction
  transcription = muna.predictions.create(
      model="moonshine/moonshine-base",
      file=audio_file
  )

  # 🚀 Use the results
  print(transcription.text)
  ```
</CodeGroup>

## Try it Yourself

<CardGroup cols={2}>
  <Card title="Compile in Slack" icon="slack" href="https://muna.ai/slack">
    Compile a Huggingface model in our community Slack.
  </Card>

  <Card title="View Compiled Models" icon="github" href="https://github.com/muna-ai/muna-predictors">
    Check out some models that have been compiled by our agent.
  </Card>
</CardGroup>
