diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2024-02-13 16:36:24 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2024-02-13 16:36:24 +0000 |
commit | 12238c47081cd789c09e6677495cca3d31356cf1 (patch) | |
tree | f702377dfc4159b3752239c05eba2f7cc71071e5 /temp.py | |
parent | 76963cdaad8b19335a8e13246313833cdaf758e6 (diff) | |
download | noetic-llama-12238c47081cd789c09e6677495cca3d31356cf1.tar.gz noetic-llama-12238c47081cd789c09e6677495cca3d31356cf1.zip |
Started on devcontainer stuff
Diffstat (limited to 'temp.py')
-rw-r--r-- | temp.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -0,0 +1,8 @@ +import ollama + +with open("Modelfile", "r") as f: + ollama.create(model = "temp", modelfile= f.read()) + +print(ollama.generate(model='temp', prompt='What\'s the weather like right now in London?', options={"stop": ["\nThought:"]})) + +ollama.delete("temp")
\ No newline at end of file |