Push a new model:
ollama pull llama2
echo "FROM llama2" >> Modelfile
echo "SYSTEM You are a friendly assistant." >> Modelfile
ollama create -f Modelfile mertbozkir/test
ollama push mertbozkir/test
or push an existing model:
Push a new model:
ollama pull llama2
echo "FROM llama2" >> Modelfile
echo "SYSTEM You are a friendly assistant." >> Modelfile
ollama create -f Modelfile mertbozkir/test
ollama push mertbozkir/test
or push an existing model:
| from langchain_groq import ChatGroq | |
| from langchain_core.prompts import ChatPromptTemplate | |
| from langchain.schema import StrOutputParser | |
| from langchain.schema.runnable import Runnable | |
| from langchain.schema.runnable.config import RunnableConfig | |
| from typing import Dict, Optional | |
| import chainlit as cl | |
| import logging | |
| from chainlit import logger |
This Python client allows you to interact with a locally deployed llama.cpp server using an OpenAI-compatible API. It provides a simple interface to send prompts and receive responses from your local language model.
Start llama.cpp server:
Navigate to your llama.cpp directory and run:
| DATA DB 0.9, 2.7, 6.7, 11.5, 16.5, 20.6, 24.2, 24.3, 19.6, 13.9, 7.3, 2.8 | |
| MOV CX,12 ; Set counter to 12 months | |
| SUB BX,BX ; Clear BX, used as accumulator | |
| MOV SI,OFFSET DATA ; Set up pointer | |
| BACK: MOV AL,[SI] ; Move byte into AL | |
| CBW ; Convert byte to word, add 1's to AH to extend AL to AX | |
| ADD BX,AX ; Add to BX | |
| INC SI ; Increment pointer | |
| DEC CX ; Decrement counter | |
| JNZ BACK ; Loop if not finished |
To watch and monitor the Tailscale session commands and their outputs on your ThinkPad (Ubuntu server) without a GUI, you can use a terminal-based monitoring tool. One excellent option for this is tmux (Terminal Multiplexer). Here's how you can set this up:
Install tmux on your ThinkPad:
sudo apt install tmux
Start a new tmux session:
tmux new -s tailscale_monitor
Based on this blogpost.
Install with Homebrew:
$ brew install postgresql@14(The version number 14 needs to be explicitly stated. The @ mark designates a version number is specified. If you need an older version of postgres, use postgresql@13, for example.)
| // Discord webhook URL | |
| const DISCORD_WEBHOOK = "Your github hook."; | |
| function sendDiscordMessage(message) { | |
| const payload = JSON.stringify({content: message}); | |
| const params = { | |
| headers: {"Content-Type": "application/json"}, | |
| method: "POST", | |
| payload: payload, |