File size: 2,891 Bytes
474793e
7ca567e
474793e
 
 
 
f194718
474793e
 
7ca567e
 
9f2a31e
9d2603a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f194718
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
title: Llama 3.2 3B Appreciation
emoji: 💬
colorFrom: yellow
colorTo: purple
sdk: gradio
sdk_version: 5.7.1
app_file: app.py
pinned: false
license: agpl-3.0
short_description: Une intelligence artificielle pour écrire des appréciations
suggested_hardware: t4-small
---

# Demo for `eltorio/Llama-3.2-3B-appreciation`

This is a Hugging Face Space demo application that showcases the performance of the fine-tuned model [`eltorio/Llama-3.2-3B-appreciation`](https://huggingface.co/eltorio/Llama-3.2-3B-appreciation). Based on the Meta Llama 3.2 3B Instruct architecture, this model is fine-tuned to deliver high-quality automatic evaluations and appreciation generation.

![image/png](https://cdn-uploads.huggingface.co/production/uploads/66fd1702f344e19e7dab4a36/4M_R2j4T3DW4AxD_Eu95i.png)


## 🚀 Features

- **Intuitive Gradio Interface**: Easy-to-use input fields for seamless interaction.
- **High-Performance Model**: Built upon Llama 3.2 3B-Instruct, offering state-of-the-art generation capabilities.
- **Custom Fine-Tuning**: Tailored for appreciation and evaluation text generation tasks.
- **Real-Time Outputs**: Fast inference for generating quality results, powered by GPU support.

## 🔧 How to Use

1. Open the hosted Space: [Demo Link](https://huggingface.co/spaces/eltorio/Llama-3.2-3B-appreciation).
2. Enter your text prompt in the input field (e.g., "Generate a positive review for a software product").
3. Click **Submit** to see the generated output from the model.


## 🛠️ Technical Details

- **Model ID**: [`eltorio/Llama-3.2-3B-appreciation`](https://huggingface.co/eltorio/Llama-3.2-3B-appreciation)
- **Base Model**: `meta-llama/Llama-3.2-3B-Instruct`
- **Libraries Used**:
  - [Transformers](https://github.com/huggingface/transformers)
  - [PEFT](https://github.com/huggingface/peft)
  - [Gradio](https://github.com/gradio-app/gradio)
- **Dependencies**:
  - GPU-enabled PyTorch for fast computation.
  - A valid `HF_TOKEN` environment variable to authenticate access to the model.


## 📦 Installation (Local Setup)

To run this application locally, follow these steps:

1. Clone this repository:
   ```bash
   git clone https://huggingface.co/spaces/eltorio/Llama-3.2-3B-appreciation
   cd Llama-3.2-3B-appreciation
   ```

2. Install dependencies:
   ```bash
   pip install -r requirements.txt
   ```

3. Set your Hugging Face token:
   ```bash
   export HF_TOKEN=your_huggingface_api_token
   ```

4. Run the application:
   ```bash
   python app.py
   ```

5. Access the app at `http://localhost:7860`.

---

## 📜 License

This project is licensed under the **AGPL-3.0** license. See the [LICENSE](LICENSE) file for details.

## 🌟 Acknowledgements

Special thanks to:
- Meta for the Llama 3.2 architecture.
- Hugging Face for providing tools to fine-tune and deploy models.
- The AI community for continuous inspiration and support.