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)# pip install -U transformers accelerate # 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", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- 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
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: Qwen/Qwen2.5-0.5B-Instruct
|
| 3 |
+
library_name: peft
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
language:
|
| 6 |
+
- it
|
| 7 |
+
- en
|
| 8 |
+
- es
|
| 9 |
+
- ru
|
| 10 |
+
- de
|
| 11 |
+
- pl
|
| 12 |
+
- th
|
| 13 |
+
- vi
|
| 14 |
+
- sv
|
| 15 |
+
- bn
|
| 16 |
+
- da
|
| 17 |
+
- he
|
| 18 |
+
- fa
|
| 19 |
+
- sk
|
| 20 |
+
- id
|
| 21 |
+
- nb
|
| 22 |
+
- el
|
| 23 |
+
- nl
|
| 24 |
+
- hu
|
| 25 |
+
- eu
|
| 26 |
+
- zh
|
| 27 |
+
- eo
|
| 28 |
+
- ja
|
| 29 |
+
- ca
|
| 30 |
+
- cs
|
| 31 |
+
- bg
|
| 32 |
+
- fi
|
| 33 |
+
- pt
|
| 34 |
+
- tr
|
| 35 |
+
- ro
|
| 36 |
+
- ar
|
| 37 |
+
- uk
|
| 38 |
+
- gl
|
| 39 |
+
- fr
|
| 40 |
+
- ko
|
| 41 |
+
tags:
|
| 42 |
+
- human-feedback
|
| 43 |
+
- qwen2
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
# Model Card for Mattimax/DATA-AI_Chat_3_0.5B
|
| 47 |
+
|
| 48 |
+
## Descrizione del Modello
|
| 49 |
+
|
| 50 |
+
**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. È stato addestrato a partire dal modello base **Qwen/Qwen2.5-0.5B-Instruct**. Il modello è ideale per chatbot, assistenti virtuali e applicazioni di interazione testuale automatica.
|
| 51 |
+
|
| 52 |
+
- **Sviluppato da:** Mattimax Team
|
| 53 |
+
- **Finanziato da:** M.INC.
|
| 54 |
+
- **Condiviso da:** Mattimax
|
| 55 |
+
- **Tipo di modello:** Modello di linguaggio LLM (chatbot)
|
| 56 |
+
- **Licenza:** Apache-2.0
|
| 57 |
+
|
| 58 |
+
## Fonti del Modello
|
| 59 |
+
|
| 60 |
+
- **Repository:** [https://huggingface.co/Mattimax/DATA-AI_Chat_3_0.5B](https://huggingface.co/Mattimax/DATA-AI_Chat_3_0.5B)
|
| 61 |
+
|
| 62 |
+
### 🔹 Chi ha creato DATA-AI?
|
| 63 |
+
DATA-AI è stato creato da *M.INC., un'azienda italiana fondata da **Mattimax (M. Marzorati)*.
|
| 64 |
+
|
| 65 |
+
### 🔹 Quali altri progetti ha sviluppato M.INC.?
|
| 66 |
+
M.INC. ha sviluppato anche *DATANET*, un'app di chat avanzata basata su DATA-AI.
|
| 67 |
+
|
| 68 |
+
### 🔹 In quali lingue è addestrato il modello?
|
| 69 |
+
Attualmente, il dataset contiene informazioni in *italiano, inglese, spagnolo e francese*.
|
| 70 |
+
|
| 71 |
+
---
|
| 72 |
+
|
| 73 |
+
## 📥 Download e Utilizzo
|
| 74 |
+
Scarica il modello e il dataset dalla piattaforma Hugging Face e inizia subito a sperimentare con *DATA-AI*!
|
| 75 |
+
|
| 76 |
+
---
|
| 77 |
+
|
| 78 |
+
## 📢 Contatti e Supporto
|
| 79 |
+
Per ulteriori informazioni, domande o collaborazioni, contatta *M.INC.*.
|