Text Generation
Transformers
Safetensors
Italian
English
qwen2
DAC
M.INC.
DATA-AI
conversational
tools
agent
text-generation-inference
Instructions to use Mattimax/DAC6-0.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mattimax/DAC6-0.5B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Mattimax/DAC6-0.5B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Mattimax/DAC6-0.5B") model = AutoModelForCausalLM.from_pretrained("Mattimax/DAC6-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 Settings
- vLLM
How to use Mattimax/DAC6-0.5B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Mattimax/DAC6-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/DAC6-0.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Mattimax/DAC6-0.5B
- SGLang
How to use Mattimax/DAC6-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/DAC6-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/DAC6-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/DAC6-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/DAC6-0.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Mattimax/DAC6-0.5B with Docker Model Runner:
docker model run hf.co/Mattimax/DAC6-0.5B
| [ | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "smile", | |
| "description": "Mostra un sorriso durante la conversazione generale", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {} | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "turn_on_flashlight", | |
| "description": "Accende la torcia del telefono", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {} | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "turn_off_flashlight", | |
| "description": "Spegne la torcia del telefono", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {} | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "take_selfie", | |
| "description": "Scatta un selfie con la fotocamera frontale", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {} | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "take_photo", | |
| "description": "Scatta una foto con la fotocamera posteriore", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {} | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "show_map", | |
| "description": "Mostra una posizione o percorso sulla mappa", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "query": { | |
| "type": "string", | |
| "description": "Luogo o indirizzo da cercare" | |
| } | |
| }, | |
| "required": [ | |
| "query" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "make_phone_call", | |
| "description": "Effettua una chiamata telefonica", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "contact_name": { | |
| "type": "string", | |
| "description": "Nome del contatto da chiamare" | |
| } | |
| }, | |
| "required": [ | |
| "contact_name" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "send_sms", | |
| "description": "Invia un SMS", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "contact_name": { | |
| "type": "string", | |
| "description": "Nome del destinatario" | |
| }, | |
| "message": { | |
| "type": "string", | |
| "description": "Testo del messaggio" | |
| } | |
| }, | |
| "required": [ | |
| "contact_name", | |
| "message" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "send_email", | |
| "description": "Invia un'email", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "to": { | |
| "type": "string", | |
| "description": "Indirizzo email del destinatario" | |
| }, | |
| "subject": { | |
| "type": "string", | |
| "description": "Oggetto dell'email" | |
| } | |
| }, | |
| "required": [ | |
| "to", | |
| "subject" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_alarm", | |
| "description": "Imposta una sveglia", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "time": { | |
| "type": "string", | |
| "description": "Orario della sveglia in formato HH:MM" | |
| } | |
| }, | |
| "required": [ | |
| "time" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_timer", | |
| "description": "Avvia un timer countdown", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "duration": { | |
| "type": "string", | |
| "description": "Durata del timer (es: 5 minuti, 1 ora)" | |
| } | |
| }, | |
| "required": [ | |
| "duration" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "create_calendar_event", | |
| "description": "Crea un evento nel calendario", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "title": { | |
| "type": "string", | |
| "description": "Titolo dell'evento" | |
| }, | |
| "datetime": { | |
| "type": "string", | |
| "description": "Data e ora in formato ISO 8601" | |
| } | |
| }, | |
| "required": [ | |
| "title", | |
| "datetime" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "create_contact", | |
| "description": "Crea un nuovo contatto nella rubrica", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "first_name": { | |
| "type": "string", | |
| "description": "Nome" | |
| }, | |
| "last_name": { | |
| "type": "string", | |
| "description": "Cognome" | |
| } | |
| }, | |
| "required": [ | |
| "first_name", | |
| "last_name" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "web_search", | |
| "description": "Cerca informazioni su internet", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "query": { | |
| "type": "string", | |
| "description": "Testo da cercare" | |
| } | |
| }, | |
| "required": [ | |
| "query" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "open_app", | |
| "description": "Apre un'applicazione", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "app_name": { | |
| "type": "string", | |
| "description": "Nome dell'app da aprire" | |
| } | |
| }, | |
| "required": [ | |
| "app_name" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "open_settings", | |
| "description": "Apre le impostazioni del telefono", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {} | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "open_wifi_settings", | |
| "description": "Apre le impostazioni WiFi", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {} | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "open_bluetooth_settings", | |
| "description": "Apre le impostazioni Bluetooth", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {} | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "create_note", | |
| "description": "Crea una nota", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "text": { | |
| "type": "string", | |
| "description": "Testo della nota" | |
| } | |
| }, | |
| "required": [ | |
| "text" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "take_screenshot", | |
| "description": "Cattura uno screenshot dello schermo", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {} | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "play_music", | |
| "description": "Riproduce musica", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "song": { | |
| "type": "string", | |
| "description": "Titolo della canzone (opzionale)" | |
| }, | |
| "artist": { | |
| "type": "string", | |
| "description": "Nome dell'artista (opzionale)" | |
| }, | |
| "playlist": { | |
| "type": "string", | |
| "description": "Nome della playlist (opzionale)" | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "pause_music", | |
| "description": "Mette in pausa la riproduzione musicale", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {} | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_volume", | |
| "description": "Imposta il volume del telefono", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "level": { | |
| "type": "integer", | |
| "description": "Livello volume da 0 a 100" | |
| } | |
| }, | |
| "required": [ | |
| "level" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "enable_airplane_mode", | |
| "description": "Attiva la modalità aereo", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {} | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "disable_airplane_mode", | |
| "description": "Disattiva la modalità aereo", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {} | |
| } | |
| } | |
| } | |
| ] |