# How to download and use Models

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-download-and-use-models%2F92021%3E%5C
**Category:** Beginners\
**Created:** [June 13, 2024, 3:06pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-download-and-use-models%2F92021 "2024-06-13T15:06:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jammore](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@Jammore](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJammore)%5C
**Post date:** [June 13, 2024, 3:06pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-download-and-use-models%2F92021%2F1 "2024-06-13T15:06:34Z")

</div>

Hi, very new to all of this,  
I have downloaded a model using the huggingface-cli,  
How would I go about running the model locally?  
I have read the docs and cant work out how to get it to run.  
Thanks in advance  
Joe

Edit:  
i have this so far

```auto
from transformers import AutoModelForSequenceClassification, AutoTokenizer
import torch

def main():
    model_name = "models--Orenguteng--Llama-3-8B-Lexi-Uncensored-GGUF"
    
    model = AutoModelForSequenceClassification.from_pretrained(model_name)
    tokenizer = AutoTokenizer.from_pretrained(model_name)
    
    input_text = input("you: ")
    
    inputs = tokenizer(input_text, return_tensors="pt")
    
    with torch.no_grad():
        outputs = model(**inputs)
    
    logits = outputs.logits
    predicted_class = torch.argmax(logits, dim=1).item()
    
    print(f"Input text: {input_text}")
    print(f"Predicted class: {predicted_class}")

if __name__ == " __main__":
    main()

```

```auto

it just says that the path is incorrect and that i need to provide the path to the model on the hub. :(
```

---

<div class="post-metadata">

**Author:** ![MattiLinnanvuori](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@MattiLinnanvuori](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FMattiLinnanvuori)%5C
**Post date:** [June 15, 2024, 9:59am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-download-and-use-models%2F92021%2F3 "2024-06-15T09:59:06Z")

</div>

Orenguteng/Llama-3-8B-Lexi-Uncensored-GGUF is the correct model name as copied from its page [https://huggingface.co/Orenguteng/Llama-3-8B-Lexi-Uncensored-GGUF](https://huggingface.co/Orenguteng/Llama-3-8B-Lexi-Uncensored-GGUF).
