Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /autonomi-ai_nos /tests /models /test_llm.py
| """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." | |
| def model(): | |
| MODEL_NAME = "TinyLlama/TinyLlama-1.1B-Chat-v1.0" | |
| yield LLM(model_name=MODEL_NAME) | |
| 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.