# Hosting LLM on Foundry

**URL:** <https://community.palantir.com/t/hosting-llm-on-foundry/2503>\
**Category:** Ask the Community\
**Tags:** code-repositories, modeling\
**Created:** [January 10, 2025, 10:02pm UTC](https://community.palantir.com/t/hosting-llm-on-foundry/2503 "2025-01-10T22:02:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmazen](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/jmazen/32/2922_2.png) [@jmazen](https://community.palantir.com/u/jmazen)\
**Post date:** [January 10, 2025, 10:02pm UTC](https://community.palantir.com/t/hosting-llm-on-foundry/2503/1 "2025-01-10T22:02:52Z")

</div>

I’m sure someone else has encountered this issue, but I’ve had some headaches trying to get an LLM hosted on Foundry. I’ve created a Docker container (just an instance of Llama 3.2 3B Instruct to test the functionality) and a model adapter to access the API within the container, but keep getting stonewalled trying to deploy it. The container has been successfully pushed to Foundry as well. Whenever I start the deployment process, here are the errors I get:

![Screenshot 2025-01-10 at 12.22.23 PM](https://canada1.discourse-cdn.com/palantir/optimized/2X/5/58c51a627c3ab25dc0c02017fd4c0a5ad685c35a_2_690x54.png)

 ![Screenshot 2025-01-10 at 12.22.54 PM](https://canada1.discourse-cdn.com/palantir/original/2X/7/7e2f964ac867b75c63a6ecf7f46216e148e46a44.png)

If anyone else has worked around these issues I’d be extremely grateful for any advice. Thanks!

---

<div class="post-metadata">

**Author:** ![\_gabriel](https://avatars.discourse-cdn.com/v4/letter/_/57b2e6/32.png) [@\_gabriel](https://community.palantir.com/u/_gabriel)\
**Post date:** [January 10, 2025, 10:11pm UTC](https://community.palantir.com/t/hosting-llm-on-foundry/2503/2 "2025-01-10T22:11:49Z")

</div>

These two pages from the documentation may be helpful:

[https://www.palantir.com/docs/foundry/transforms-python/container-overview#image-requirements](https://www.palantir.com/docs/foundry/transforms-python/container-overview#image-requirements)

[https://www.palantir.com/docs/foundry/integrate-models/container-models-faq](https://www.palantir.com/docs/foundry/integrate-models/container-models-faq)

In particular, it seems like the error refers to the requirement that the user for custom docker images must be non-root and numeric:

1. The image has a numeric `userID`.

---

<div class="post-metadata">

**Author:** ![HMCJPG](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/hmcjpg/32/2226_2.png) [@HMCJPG](https://community.palantir.com/u/HMCJPG)\
**Post date:** [January 13, 2025, 9:03am UTC](https://community.palantir.com/t/hosting-llm-on-foundry/2503/3 "2025-01-13T09:03:42Z")

</div>

One quick thought: Have you verified that you have the necessary permissions? In my experience, deploying Docker images for certain AI tools often requires specific access rights, so it might be worth double-checking if that applies in this situation.

---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/system/32/3_2.png) [@system](https://community.palantir.com/u/system)\
**Post date:** [March 14, 2025, 9:04am UTC](https://community.palantir.com/t/hosting-llm-on-foundry/2503/4 "2025-03-14T09:04:14Z")

</div>

Closed on March 14, 2025, 9:04am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
