Text Generation
Transformers
Safetensors
qwen2
human-feedback
data-ai
conversational
text-generation-inference
Instructions to use Mattimax/DATA-AI_Chat_3_0.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mattimax/DATA-AI_Chat_3_0.5B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Mattimax/DATA-AI_Chat_3_0.5B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Mattimax/DATA-AI_Chat_3_0.5B") model = AutoModelForCausalLM.from_pretrained("Mattimax/DATA-AI_Chat_3_0.5B") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Mattimax/DATA-AI_Chat_3_0.5B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Mattimax/DATA-AI_Chat_3_0.5B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Mattimax/DATA-AI_Chat_3_0.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Mattimax/DATA-AI_Chat_3_0.5B
- SGLang
How to use Mattimax/DATA-AI_Chat_3_0.5B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Mattimax/DATA-AI_Chat_3_0.5B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Mattimax/DATA-AI_Chat_3_0.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Mattimax/DATA-AI_Chat_3_0.5B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Mattimax/DATA-AI_Chat_3_0.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Mattimax/DATA-AI_Chat_3_0.5B with Docker Model Runner:
docker model run hf.co/Mattimax/DATA-AI_Chat_3_0.5B
Improve language tag
#1
by lbourdois - opened
README.md
CHANGED
|
@@ -1,87 +1,65 @@
|
|
| 1 |
-
---
|
| 2 |
-
base_model: Qwen/Qwen2.5-0.5B-Instruct
|
| 3 |
-
library_name: transformers
|
| 4 |
-
license: apache-2.0
|
| 5 |
-
language:
|
| 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 |
-
<div align="center">
|
| 66 |
-
<img src="https://huggingface.co/Mattimax/DATA-AI_Chat_3_0.5B/resolve/main/DATA-AI_Graphic1.jpg" alt="DATA-AI_Chat_3" />
|
| 67 |
-
</div>
|
| 68 |
-
|
| 69 |
-
### 🔹 Altri Progetti di M.INC.
|
| 70 |
-
|
| 71 |
-
Oltre a DATA-AI, **M.INC.** ha sviluppato **DATANET**, un'applicazione di chat avanzata basata su DATA-AI.
|
| 72 |
-
|
| 73 |
-
### 🔹 Lingue di Addestramento
|
| 74 |
-
|
| 75 |
-
Il modello è stato addestrato utilizzando un dataset contenente informazioni in **italiano, inglese, spagnolo e francese**.
|
| 76 |
-
|
| 77 |
-
---
|
| 78 |
-
|
| 79 |
-
## 📥 Download e Utilizzo
|
| 80 |
-
|
| 81 |
-
Scarica il modello e il relativo dataset dalla piattaforma Hugging Face e inizia subito a sperimentare con **DATA-AI**!
|
| 82 |
-
|
| 83 |
-
---
|
| 84 |
-
|
| 85 |
-
## 📢 Contatti e Supporto
|
| 86 |
-
|
| 87 |
Per ulteriori informazioni, domande o opportunità di collaborazione, contatta **M.INC.**.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: Qwen/Qwen2.5-0.5B-Instruct
|
| 3 |
+
library_name: transformers
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
language:
|
| 6 |
+
- zho
|
| 7 |
+
- eng
|
| 8 |
+
- fra
|
| 9 |
+
- spa
|
| 10 |
+
- por
|
| 11 |
+
- deu
|
| 12 |
+
- ita
|
| 13 |
+
- rus
|
| 14 |
+
- jpn
|
| 15 |
+
- kor
|
| 16 |
+
- vie
|
| 17 |
+
- tha
|
| 18 |
+
- ara
|
| 19 |
+
tags:
|
| 20 |
+
- human-feedback
|
| 21 |
+
- data-ai
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
# Model Card per Mattimax/DATA-AI_Chat_3_0.5B
|
| 25 |
+
|
| 26 |
+
## Descrizione del Modello
|
| 27 |
+
|
| 28 |
+
**Mattimax/DATA-AI_Chat_3_0.5B** è un modello di linguaggio conversazionale fine-tuned, progettato per generare risposte interattive e coerenti in contesti di chat. Il modello, derivato dal base model **Qwen/Qwen2.5-0.5B-Instruct**, si presta ad applicazioni quali chatbot, assistenti virtuali e sistemi di interazione testuale automatizzata.
|
| 29 |
+
|
| 30 |
+
- **Sviluppato da:** Mattimax Team
|
| 31 |
+
- **Finanziato da:** M.INC.
|
| 32 |
+
- **Condiviso da:** Mattimax
|
| 33 |
+
- **Tipo di modello:** LLM (chatbot)
|
| 34 |
+
- **Licenza:** Apache-2.0
|
| 35 |
+
|
| 36 |
+
## Fonti del Modello
|
| 37 |
+
|
| 38 |
+
- **Repository:** [https://huggingface.co/Mattimax/DATA-AI_Chat_3_0.5B](https://huggingface.co/Mattimax/DATA-AI_Chat_3_0.5B)
|
| 39 |
+
|
| 40 |
+
### 🔹 Chi ha creato DATA-AI?
|
| 41 |
+
|
| 42 |
+
DATA-AI è stato sviluppato da **M.INC.**, un'azienda italiana fondata da **Mattimax (M. Marzorati)**. Durante il processo di benchmarking, il modello ha evidenziato notevoli capacità conversazionali e prestazioni di alto livello.
|
| 43 |
+
<div align="center">
|
| 44 |
+
<img src="https://huggingface.co/Mattimax/DATA-AI_Chat_3_0.5B/resolve/main/DATA-AI_Graphic1.jpg" alt="DATA-AI_Chat_3" />
|
| 45 |
+
</div>
|
| 46 |
+
|
| 47 |
+
### 🔹 Altri Progetti di M.INC.
|
| 48 |
+
|
| 49 |
+
Oltre a DATA-AI, **M.INC.** ha sviluppato **DATANET**, un'applicazione di chat avanzata basata su DATA-AI.
|
| 50 |
+
|
| 51 |
+
### 🔹 Lingue di Addestramento
|
| 52 |
+
|
| 53 |
+
Il modello è stato addestrato utilizzando un dataset contenente informazioni in **italiano, inglese, spagnolo e francese**.
|
| 54 |
+
|
| 55 |
+
---
|
| 56 |
+
|
| 57 |
+
## 📥 Download e Utilizzo
|
| 58 |
+
|
| 59 |
+
Scarica il modello e il relativo dataset dalla piattaforma Hugging Face e inizia subito a sperimentare con **DATA-AI**!
|
| 60 |
+
|
| 61 |
+
---
|
| 62 |
+
|
| 63 |
+
## 📢 Contatti e Supporto
|
| 64 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
Per ulteriori informazioni, domande o opportunità di collaborazione, contatta **M.INC.**.
|