Views
No views yet
curl -fsSL https://ollama.com/install.sh | shtouch ModelfileFROM ./models/luna-4b-v0.5.gguf
PARAMETER temperature 1
"""ollama create luna -f ./Modelfileollama run luna1import ollama
2
3stream = ollama.chat(
4 model='llama3',
5 messages=[{'role': 'user', 'content': 'Who are you?'}],
6 stream=True,
7)
8
9for chunk in stream:
10 print(chunk['message']['content'], end='', flush=True)