Buckets:

download
raw
651 Bytes
"""Llama2 Chat model tests and benchmarks."""
import pytest
from nos.models import LLM
from nos.test.utils import skip_if_no_torch_cuda
SYSTEM_PROMPT = "You are NOS chat, a large language model (LLM) agent hosted by Autonomi AI."
@pytest.fixture(scope="module")
def model():
MODEL_NAME = "TinyLlama/TinyLlama-1.1B-Chat-v1.0"
yield LLM(model_name=MODEL_NAME)
@skip_if_no_torch_cuda
def test_streaming_chat(model):
messages = [
{"role": "system", "content": SYSTEM_PROMPT},
{"role": "user", "content": "What is the meaning of life?"},
]
for _ in model.chat(messages=messages, max_new_tokens=512):
pass

Xet Storage Details

Size:
651 Bytes
·
Xet hash:
5c3010469259e9f397480303f34cd94a4ef4d2411888eae948de70316ac8dd57

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.