# addHuggingFaceModel

- Module: [CommunityToolkit.Aspire.Hosting.Ollama](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama.md)
- Version: `13.4.0`
- Kind: `method`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire)

Adds a model from Hugging Face to the Ollama resource. Only models in GGUF format are supported.

## Definition

```typescript
interface OllamaExecutableResource {
  // ... omitted for brevity
  addHuggingFaceModel(
    name: string,
    modelName: string): OllamaModelResource
}
```

## Parameters

- `name` (`string`)
- `modelName` (`string`)

## Returns

[OllamaModelResource](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/ollamamodelresource.md) `builder`

## Applies to

- [OllamaExecutableResource](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/ollamaexecutableresource.md)
- [OllamaResource](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/ollamaresource.md)
