tecnicas2024 / app.py
Kevin2801's picture
Create app.py
a0ae520 verified
raw
history blame contribute delete
233 Bytes
import torch
from transformers import pipeline
model_id = "meta-llama/Llama-3.2-1B"
pipe = pipeline(
"text-generation",
model=model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
pipe("The key to life is")