Datasets:
text stringlengths 457 1.05k | input_ids listlengths 1.02k 1.02k | attention_mask listlengths 1.02k 1.02k | labels listlengths 1.02k 1.02k |
|---|---|---|---|
<|start_header_id|>system<|end_header_id|>
You are an expert AI email classifier that categorizes email text into one of the following four classes: refund, shipping problem, question, or exchange.
Always classify the email text by answering only with the class.
<|begin_of_text|><|start_header_id|>user<|end_header_id|... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... |
<|start_header_id|>system<|end_header_id|>
You are an expert AI email classifier that categorizes email text into one of the following four classes: refund, shipping problem, question, or exchange.
Always classify the email text by answering only with the class.
<|begin_of_text|><|start_header_id|>user<|end_header_id|... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... |
<|start_header_id|>system<|end_header_id|>
You are an expert AI email classifier that categorizes email text into one of the following four classes: refund, shipping problem, question, or exchange.
Always classify the email text by answering only with the class.
<|begin_of_text|><|start_header_id|>user<|end_header_id|... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... |
<|start_header_id|>system<|end_header_id|>
You are an expert AI email classifier that categorizes email text into one of the following four classes: refund, shipping problem, question, or exchange.
Always classify the email text by answering only with the class.
<|begin_of_text|><|start_header_id|>user<|end_header_id|... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... |
<|start_header_id|>system<|end_header_id|>
You are an expert AI email classifier that categorizes email text into one of the following four classes: refund, shipping problem, question, or exchange.
Always classify the email text by answering only with the class.
<|begin_of_text|><|start_header_id|>user<|end_header_id|... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... |
<|start_header_id|>system<|end_header_id|>
You are an expert AI email classifier that categorizes email text into one of the following four classes: refund, shipping problem, question, or exchange.
Always classify the email text by answering only with the class.
<|begin_of_text|><|start_header_id|>user<|end_header_id|... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... |
<|start_header_id|>system<|end_header_id|>
You are an expert AI email classifier that categorizes email text into one of the following four classes: refund, shipping problem, question, or exchange.
Always classify the email text by answering only with the class.
<|begin_of_text|><|start_header_id|>user<|end_header_id|... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... |
<|start_header_id|>system<|end_header_id|>
You are an expert AI email classifier that categorizes email text into one of the following four classes: refund, shipping problem, question, or exchange.
Always classify the email text by answering only with the class.
<|begin_of_text|><|start_header_id|>user<|end_header_id|... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... |
<|start_header_id|>system<|end_header_id|>
You are an expert AI email classifier that categorizes email text into one of the following four classes: refund, shipping problem, question, or exchange.
Always classify the email text by answering only with the class.
<|begin_of_text|><|start_header_id|>user<|end_header_id|... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... |
<|start_header_id|>system<|end_header_id|>
You are an expert AI email classifier that categorizes email text into one of the following four classes: refund, shipping problem, question, or exchange.
Always classify the email text by answering only with the class.
<|begin_of_text|><|start_header_id|>user<|end_header_id|... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... |
<|start_header_id|>system<|end_header_id|>
You are an expert AI email classifier that categorizes email text into one of the following four classes: refund, shipping problem, question, or exchange.
Always classify the email text by answering only with the class.
<|begin_of_text|><|start_header_id|>user<|end_header_id|... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
128000,
128006,
9125,
128007,
198,
2675,
527,
459,
6335,
15592,
2613,
34465,
430,
22824,
4861,
2613,
1495,
1139,
832,
315,
279,
2768,
3116,
6989,
25,
21639,
11,
11862,
3575,
11,
3488,
11,
477,
9473,
627,
38195,
49229,
279,
2613,
1495,
5... |
End of preview. Expand in Data Studio
Fine Tuning Course: archivos de los laboratorios
Built with Llama.
Este repositorio tiene los modelos, datasets y adapters de los 3 laboratorios del curso de fine-tuning en español:
- Laboratorio 1: LoRA desde cero.
- Laboratorio 2: QLoRA con Llama 3.2 1B.
- Laboratorio 3: inferencia y cambio de LoRA adapters.
Los notebooks descargan estos archivos con huggingface_hub. No necesitas una cuenta de Hugging Face, porque el repositorio es público.
Contenido
| Ruta | Contenido | Laboratorio | Licencia |
|---|---|---|---|
img/lora_r.png |
Figura de LoRA | 1 | — |
Models/Pythia_14m/ |
Modelo Pythia-14M | 1 | Apache 2.0 |
data/tokenized_Alpaca_P14m/ |
Dataset Alpaca, tokenizado para Pythia | 1 | CC BY-NC 4.0 |
Models/Llama_32_1B/ |
Llama 3.2 1B, el LoRA adapter entrenado con Alpaca (adaptor/) y el registro del entrenamiento (cp/checkpoint-11701/trainer_state.json) |
2 | Llama 3.2 Community License |
data/Llama_32_1B/Alpaca/ |
Dataset Alpaca, tokenizado para Llama 3.2 | 2 | CC BY-NC 4.0 |
Models/Llama_32_1B_Instruct/ |
Llama 3.2 1B Instruct y 4 LoRA adapters para clasificar correos (adaptor/) |
3 | Llama 3.2 Community License |
data/Llama_32_1B/Cloth_4clss_test/ |
12,000 correos de clientes de una tienda, en 4 clases | 3 | Ver abajo |
data/*.txt |
Etiquetas y predicciones de una evaluación anterior | 3 | — |
Los correos de Cloth_4clss_test son sintéticos: se generaron con LLMs para este curso. No son correos reales de clientes. Los nombres de personas son inventados.
Cómo se usan
Cada laboratorio descarga solo sus archivos. Por ejemplo, el Laboratorio 3:
from pathlib import Path
from huggingface_hub import snapshot_download
ASSETS = Path(snapshot_download(
repo_id="ecuartasm/fine-tuning-course-assets",
repo_type="dataset",
allow_patterns=["Models/Llama_32_1B_Instruct/*", "data/Llama_32_1B/Cloth_4clss_test/*", "data/*.txt"],
))
Licencias
- Llama 3.2. Los modelos de
Models/Llama_32_1B/yModels/Llama_32_1B_Instruct/y sus adapters están bajo la Llama 3.2 Community License. Cada carpeta incluye una copia enLICENSE.txt, y el aviso de Meta está enNOTICE.txt. Su uso debe cumplir la Acceptable Use Policy.Llama 3.2 is licensed under the Llama 3.2 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved.
- Alpaca. Los datasets tokenizados vienen de Stanford Alpaca (Taori et al., 2023). Su licencia es CC BY-NC 4.0, que solo permite usos no comerciales.
- Pythia. Pythia-14M (EleutherAI) tiene licencia Apache 2.0.
Este repositorio es material educativo, sin fines comerciales.
- Downloads last month
- 100