Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
@@ -6,42 +6,22 @@ tags:
|
|
6 |
license: mit
|
7 |
library_name: transformers
|
8 |
pipeline_tag: text-generation
|
|
|
9 |
---
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
##
|
18 |
-
|
19 |
-
|
20 |
-
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
- Asistente conversacional general
|
28 |
-
- Generaci贸n de texto en espa帽ol/ingl茅s
|
29 |
-
- Q&A contextual
|
30 |
-
|
31 |
-
## How to Use
|
32 |
-
|
33 |
-
### **Inferencia Directa**
|
34 |
-
```python
|
35 |
-
from transformers import pipeline
|
36 |
-
|
37 |
-
chatbot = pipeline(
|
38 |
-
"text-generation",
|
39 |
-
model="microsoft/Phi-3-mini-4k-instruct",
|
40 |
-
device_map="auto",
|
41 |
-
torch_dtype="auto",
|
42 |
-
trust_remote_code=True
|
43 |
-
)
|
44 |
-
|
45 |
-
messages = [{"role": "user", "content": "Explica la teor铆a de relatividad"}]
|
46 |
-
response = chatbot(messages, max_new_tokens=256)
|
47 |
-
print(response[0]['generated_text'])
|
|
|
6 |
license: mit
|
7 |
library_name: transformers
|
8 |
pipeline_tag: text-generation
|
9 |
+
sdk: streamlit
|
10 |
---
|
11 |
+
# Chatbot para Mac M1 con Phi-3-mini
|
12 |
+
|
13 |
+
Chatbot optimizado para Apple Silicon usando:
|
14 |
+
- Microsoft Phi-3-mini (3.8B par谩metros)
|
15 |
+
- Quantizaci贸n 4-bit
|
16 |
+
- Streamlit para la interfaz web
|
17 |
+
|
18 |
+
## Requisitos
|
19 |
+
- Mac con chip M1/M2/M3
|
20 |
+
- macOS 13.0+
|
21 |
+
- Python 3.9+
|
22 |
+
|
23 |
+
## Instalaci贸n
|
24 |
+
```bash
|
25 |
+
git clone https://github.com/tu-usuario/mi-chatbot.git
|
26 |
+
cd mi-chatbot
|
27 |
+
pip install -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|