Instructions to use calcuis/chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use calcuis/chat with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf calcuis/chat # Run inference directly in the terminal: llama cli -hf calcuis/chat
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf calcuis/chat # Run inference directly in the terminal: llama cli -hf calcuis/chat
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf calcuis/chat # Run inference directly in the terminal: ./llama-cli -hf calcuis/chat
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf calcuis/chat # Run inference directly in the terminal: ./build/bin/llama-cli -hf calcuis/chat
Use Docker
docker model run hf.co/calcuis/chat
- LM Studio
- Jan
- Ollama
How to use calcuis/chat with Ollama:
ollama run hf.co/calcuis/chat
- Unsloth Desktop
- Docker Model Runner
How to use calcuis/chat with Docker Model Runner:
docker model run hf.co/calcuis/chat
- Lemonade
How to use calcuis/chat with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull calcuis/chat
Run and chat with the model
lemonade run user.chat-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Delete chat.py
Browse files
chat.py
DELETED
|
@@ -1,13 +0,0 @@
|
|
| 1 |
-
from ctransformers import AutoModelForCausalLM
|
| 2 |
-
llm = AutoModelForCausalLM.from_pretrained("chat.gguf")
|
| 3 |
-
|
| 4 |
-
while True:
|
| 5 |
-
ask = input("Enter a Question (Q for quit): ")
|
| 6 |
-
|
| 7 |
-
if ask == "q" or ask == "Q":
|
| 8 |
-
break
|
| 9 |
-
|
| 10 |
-
ans = llm(ask, max_new_tokens=1024)
|
| 11 |
-
print(ask+ans)
|
| 12 |
-
|
| 13 |
-
print("Goodbye!")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|