Modelo
LLMs & Texto
robbyant/lingbot-map
Modelo de modelo — 0 downloads e 257 curtidas no Hugging Face.
Hugging Face · Modelos
·robbyant
·
·♥ 257
O modelo robbyant/lingbot-map aparece entre os mais comentados do Hugging Face — um termômetro do que a comunidade está realmente usando agora na tarefa de modelo.
Ficha técnica
- Tarefa: modelo
- Downloads: 0 · Curtidas: 257
Como rodar localmente
Carregue com a transformers usando o template de chat:
pip install -U transformers accelerate torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "robbyant/lingbot-map"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id, torch_dtype="auto", device_map="auto"
)
msgs = [{"role": "user", "content": "Explique o que é entropia."}]
inputs = tok.apply_chat_template(
msgs, add_generation_prompt=True, return_tensors="pt"
).to(model.device)
out = model.generate(inputs, max_new_tokens=256)
print(tok.decode(out[0][inputs.shape[-1]:], skip_special_tokens=True))Para servir como API (recomendado para modelos grandes), use o vLLM:
pip install vllm
vllm serve robbyant/lingbot-map
// relacionados
Leia também
Blog
OCRmyPDF Tutorial: Convert Scanned Documents into Searchable PDF/A Files with Sidecar Text Extraction and Batch Processing
Blog
Why Wall Street thinks US memory maker Micron is the next Nvidia
Blog
AI won't become a real coworker until it stops answering and starts finishing tasks
Blog