File size: 1,402 Bytes
1a3c725
745c2e3
 
1a3c725
745c2e3
1a3c725
745c2e3
 
 
1a3c725
 
745c2e3
63ebdaf
 
14e2c52
1a3c725
 
745c2e3
 
7c20b73
63ebdaf
745c2e3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1a3c725
745c2e3
1a3c725
745c2e3
 
1a3c725
745c2e3
 
 
 
 
 
 
63ebdaf
 
 
 
 
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
---
license: apache-2.0
base_model: unsloth/Llama-3.2-1B-instruct-bnb-4bit
tags:
- text-to-json
- unsloth
- llama-3
- fine-tuned
- extraction
language:
- en
- es
colorFrom: blue
colorTo: indigo
library_name: transformers
---

# 🚀 Llama-3.2-1B-JSON-Extractor

![Portada](./portada.png)

This model is a professional fine-tuned version of **Llama 3.2 1B Instruct**, specialized in converting **Natural Language into structured JSON objects**.

## 🎯 Project Goal
The system interprets human intent and extracts key entities into a machine-readable format. It is designed to be the bridge between human communication and database systems.

### Extracted Fields:
- `product`: Name or description of the item.
- `price`: Numerical value (currency independent).
- `category`: Market segment or classification.

## 🛠️ Technical Specifications
- **Architecture**: Llama 3.2 1B
- **Optimization**: QLoRA (4-bit)
- **Rank (r)**: 16
- **Alpha**: 32
- **Learning Rate**: 2e-4
- **Final Training Loss**: ~0.013 (High precision)

## 💡 Usage Example

**Input:**
> "I want to sell a Sony PlayStation 5 for 500 dollars in the gaming category."

**Output:**
```json
{
  "product": "Sony PlayStation 5",
  "price": 500,
  "category": "gaming"
}

```
<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>

Developed by ivanasp using Unsloth.