mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-11 00:07:07 +00:00
Simpler quickstart
This commit is contained in:
@@ -13,10 +13,7 @@ pip install ollama
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
import ollama
|
import ollama
|
||||||
model_name = "huggingface.co/thebloke/llama-7b-ggml"
|
ollama.generate("./llama-7b-ggml.bin", "hi")
|
||||||
model = ollama.pull(model_name)
|
|
||||||
ollama.load(model)
|
|
||||||
ollama.generate(model_name, "hi")
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Reference
|
## Reference
|
||||||
|
|||||||
Reference in New Issue
Block a user