How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="maywell/synatra_V0.01")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("maywell/synatra_V0.01")
model = AutoModelForCausalLM.from_pretrained("maywell/synatra_V0.01", 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=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

ν…ŒμŠ€νŠΈ λͺ¨λΈμž…λ‹ˆλ‹€.

μ‚¬μš©μ‹œ μ£Όμ˜μ‚¬ν•­

ν”„λ‘¬ν”„νŠΈ μž…λ ₯μ‹œ [INST] ν”„λ‘¬ν”„νŠΈ λ©”μ‹œμ§€ [\INST] ν˜•μ‹ λ§žμΆ”μ–΄ μ£Όμ…”μ•Ό ν•©λ‹ˆλ‹€. 원본 λͺ¨λΈμ΄ κ·Έλ ‡μŠ΅λ‹ˆλ‹€.

Downloads last month
16
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for maywell/synatra_V0.01

Quantizations
1 model

Spaces using maywell/synatra_V0.01 9