---
title: "fromHuggingface"
sidebar_label: "fromHuggingface"
description: "Kotlin binding reference: fromHuggingface."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../../index.md)/[io.clika.runtime](../../index.md)/[Processor](../index.md)/[Companion](index.md)/[fromHuggingface](fromHuggingface.md)

# fromHuggingface

[common]\
fun [fromHuggingface](fromHuggingface.md)(path: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), where: [Placement](../../Placement/index.md)? = null, consumedKeys: [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)&gt; = emptyList()): [Processor](../index.md)

Load a Hugging Face model directory: the tokenizer (any artifact) and the media processor its `preprocessor_config.json` describes. [where](fromHuggingface.md) binds the media processor's default placement; [consumedKeys](fromHuggingface.md) extends the image configuration's recognized keys as on [ImageProcessor.fromHuggingface](../../ImageProcessor/Companion/fromHuggingface.md).