# How to Configure LLaMA-3:8B on HuggingFace to Generate Responses Similar to Ollama?

**URL:** <https://discuss.huggingface.co/t/how-to-configure-llama-3-8b-on-huggingface-to-generate-responses-similar-to-ollama/109960>\
**Category:** 🤗Transformers\
**Created:** [October 3, 2024, 12:40pm UTC](https://discuss.huggingface.co/t/how-to-configure-llama-3-8b-on-huggingface-to-generate-responses-similar-to-ollama/109960 "2024-10-03T12:40:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [October 4, 2024, 2:28am UTC](https://discuss.huggingface.co/t/how-to-configure-llama-3-8b-on-huggingface-to-generate-responses-similar-to-ollama/109960/2 "2024-10-04T02:28:05Z")

</div>

The issue of different output when using pipelines and when using them locally or in Spaces is sometimes talked about.  
While pipelines are easy to deal with, they seem to be working by supplementing a lot of information on their own, which means it is difficult to determine what is wrong with them.

> [@Completely different results for model in pipeline and by itself](https://discuss.huggingface.co/t/completely-different-results-for-model-in-pipeline-and-by-itself/15511/2):
>
> Ah, actually, I think I see the issue, right after posting it. I think it’s about setting up the tokenizer? Could that be it? In preprocess I make sure to have overlap, pad and max length = model.max\_length I’m guessing by default when I just pass tokenizer to the pipeline, none of these get set. Can I pass a pre setup tokenizer? Figured it out, there are two parameters, max\_seq\_len and max\_answer\_len that can set during the call but not initialization. thanks a lot!

> [@Different outputs when using pipeline](https://discuss.huggingface.co/t/different-outputs-when-using-pipeline/14372):
>
> Hi folks! I’m currently working on my master thesis and need to implement a text-classification model. Therefore I’m fine-tuning a base BERT model on my data. So far so good. To evaluate my fine-tuned model, I’m passing my test data to it for predictions. For this purpose I’m using the “pipeline” API provided by huggingface with a sigmoid function (since I’m facing a multi-label classification problem). It does work and I get as an output the probs for each class. Now if instead of using the pi…

I’m not sure about Ollama, but I think it would be better to use something other than pipelines to set chatbot-like parameters.  
chat\_completion, for example, is often used.  
Also, I heard that Llama3 has some kind of bug, though I’m not sure what it has to do with this issue.

> **[Chatting with Transformers](https://huggingface.co/docs/transformers/main/en/conversations)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

> **[Chat Completion](https://huggingface.co/docs/api-inference/en/tasks/chat-completion)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

_[View the full topic](https://discuss.huggingface.co/t/how-to-configure-llama-3-8b-on-huggingface-to-generate-responses-similar-to-ollama/109960)._
