Safetensors
GGUF
Turkish
llama
Llama-3
instruct
finetune
chatml
gpt4
synthetic data
distillation
function calling
json mode
axolotl
roleplaying
chat
Instructions to use tda45/TdAI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use tda45/TdAI with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tda45/TdAI", filename="llama.cpp/models/ggml-vocab-aquila.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tda45/TdAI 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 tda45/TdAI # Run inference directly in the terminal: llama cli -hf tda45/TdAI
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tda45/TdAI # Run inference directly in the terminal: llama cli -hf tda45/TdAI
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 tda45/TdAI # Run inference directly in the terminal: ./llama-cli -hf tda45/TdAI
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 tda45/TdAI # Run inference directly in the terminal: ./build/bin/llama-cli -hf tda45/TdAI
Use Docker
docker model run hf.co/tda45/TdAI
- LM Studio
- Jan
- Ollama
How to use tda45/TdAI with Ollama:
ollama run hf.co/tda45/TdAI
- Unsloth Studio
How to use tda45/TdAI with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for tda45/TdAI to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for tda45/TdAI to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tda45/TdAI to start chatting
- Atomic Chat new
- Docker Model Runner
How to use tda45/TdAI with Docker Model Runner:
docker model run hf.co/tda45/TdAI
- Lemonade
How to use tda45/TdAI with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tda45/TdAI
Run and chat with the model
lemonade run user.TdAI-{{QUANT_TAG}}List all available models
lemonade list
| # | |
| # Synchronize ggml changes to llama.cpp | |
| # | |
| # Usage: | |
| # | |
| # $ cd /path/to/llama.cpp | |
| # $ ./scripts/sync-ggml-am.sh -skip hash0,hash1,hash2... -C 3 | |
| # | |
| set -e | |
| sd=$(dirname $0) | |
| cd $sd/../ | |
| SRC_LLAMA=$(pwd) | |
| SRC_GGML=$(cd ../ggml; pwd) | |
| if [ ! -d $SRC_GGML ]; then | |
| echo "ggml not found at $SRC_GGML" | |
| exit 1 | |
| fi | |
| lc=$(cat $SRC_LLAMA/scripts/sync-ggml.last) | |
| echo "Syncing ggml changes since commit $lc" | |
| to_skip="" | |
| # context for git patches in number of lines | |
| ctx="8" | |
| while [ "$1" != "" ]; do | |
| case $1 in | |
| -skip ) | |
| shift | |
| to_skip=$1 | |
| ;; | |
| -C ) | |
| shift | |
| ctx=$1 | |
| ;; | |
| esac | |
| shift | |
| done | |
| cd $SRC_GGML | |
| git log --oneline $lc..HEAD | |
| git log --oneline $lc..HEAD --reverse | grep -v "(llama/[0-9]*)" | cut -d' ' -f1 > $SRC_LLAMA/ggml-commits | |
| if [ ! -s $SRC_LLAMA/ggml-commits ]; then | |
| rm -v $SRC_LLAMA/ggml-commits | |
| echo "No new commits" | |
| exit 0 | |
| fi | |
| if [ -f $SRC_LLAMA/ggml-src.patch ]; then | |
| rm -v $SRC_LLAMA/ggml-src.patch | |
| fi | |
| while read c; do | |
| if [ -n "$to_skip" ]; then | |
| if [[ $to_skip == *"$c"* ]]; then | |
| echo "Skipping $c" | |
| continue | |
| fi | |
| fi | |
| git format-patch -U${ctx} -k $c~1..$c --stdout -- \ | |
| CMakeLists.txt \ | |
| src/CMakeLists.txt \ | |
| cmake/BuildTypes.cmake \ | |
| cmake/GitVars.cmake \ | |
| cmake/common.cmake \ | |
| cmake/ggml-config.cmake.in \ | |
| src/ggml-cpu/cmake/FindSIMD.cmake \ | |
| src/ggml* \ | |
| include/ggml*.h \ | |
| include/gguf*.h \ | |
| tests/test-opt.cpp \ | |
| tests/test-quantize-fns.cpp \ | |
| tests/test-quantize-perf.cpp \ | |
| tests/test-backend-ops.cpp \ | |
| LICENSE \ | |
| scripts/gen-authors.sh \ | |
| >> $SRC_LLAMA/ggml-src.patch | |
| done < $SRC_LLAMA/ggml-commits | |
| rm -v $SRC_LLAMA/ggml-commits | |
| # delete files if empty | |
| if [ ! -s $SRC_LLAMA/ggml-src.patch ]; then | |
| rm -v $SRC_LLAMA/ggml-src.patch | |
| fi | |
| cd $SRC_LLAMA | |
| if [ -f $SRC_LLAMA/ggml-src.patch ]; then | |
| # replace PR numbers | |
| # | |
| # Subject: some text (#1234) | |
| # Subject: some text (ggml/1234) | |
| cat ggml-src.patch | sed -e 's/^Subject: \(.*\) (#\([0-9]*\))/Subject: \1 (ggml\/\2)/' > ggml-src.patch.tmp | |
| mv ggml-src.patch.tmp ggml-src.patch | |
| cat ggml-src.patch | sed -e 's/^\(.*\) (#\([0-9]*\))$/\1 (ggml\/\2)/' > ggml-src.patch.tmp | |
| mv ggml-src.patch.tmp ggml-src.patch | |
| # replace filenames: | |
| # | |
| # CMakelists.txt -> ggml/CMakeLists.txt | |
| # src/CMakeLists.txt -> ggml/src/CMakeLists.txt | |
| # cmake/BuildTypes.cmake -> ggml/cmake/BuildTypes.cmake | |
| # cmake/GitVars.cmake -> ggml/cmake/GitVars.cmake | |
| # cmake/common.cmake -> ggml/cmake/common.cmake | |
| # cmake/ggml-config.cmake.in -> ggml/cmake/ggml-config.cmake.in | |
| # src/ggml-cpu/cmake/FindSIMD.cmake -> ggml/src/ggml-cpu/cmake/FindSIMD.cmake | |
| # | |
| # src/ggml* -> ggml/src/ggml* | |
| # | |
| # include/ggml*.h -> ggml/include/ggml*.h | |
| # include/gguf*.h -> ggml/include/gguf*.h | |
| # | |
| # tests/test*.cpp -> tests/ | |
| # | |
| # LICENSE -> LICENSE | |
| # scripts/gen-authors.sh -> scripts/gen-authors.sh | |
| cat ggml-src.patch | sed -E \ | |
| -e 's/([[:space:]]| [ab]\/)CMakeLists.txt/\1ggml\/CMakeLists.txt/g' \ | |
| -e 's/([[:space:]]| [ab]\/)src\/CMakeLists.txt/\1ggml\/src\/CMakeLists.txt/g' \ | |
| -e 's/([[:space:]]| [ab]\/)cmake\/BuildTypes.cmake/\1ggml\/cmake\/BuildTypes.cmake/g' \ | |
| -e 's/([[:space:]]| [ab]\/)cmake\/GitVars.cmake/\1ggml\/cmake\/GitVars.cmake/g' \ | |
| -e 's/([[:space:]]| [ab]\/)cmake\/common.cmake/\1ggml\/cmake\/common.cmake/g' \ | |
| -e 's/([[:space:]]| [ab]\/)cmake\/ggml-config.cmake.in/\1ggml\/cmake\/ggml-config.cmake.in/g' \ | |
| -e 's/([[:space:]]| [ab]\/)src\/ggml-cpu\/cmake\/FindSIMD.cmake/\1ggml\/src\/ggml-cpu\/cmake\/FindSIMD.cmake/g' \ | |
| -e 's/([[:space:]]| [ab]\/)src\/ggml(.*)/\1ggml\/src\/ggml\2/g' \ | |
| -e 's/([[:space:]]| [ab]\/)include\/ggml(.*)\.h/\1ggml\/include\/ggml\2.h/g' \ | |
| -e 's/([[:space:]]| [ab]\/)include\/gguf(.*)\.h/\1ggml\/include\/gguf\2.h/g' \ | |
| -e 's/([[:space:]]| [ab]\/)tests\/(.*)\.cpp/\1tests\/\2.cpp/g' \ | |
| -e 's/([[:space:]]| [ab]\/)LICENSE/\1LICENSE/g' \ | |
| -e 's/([[:space:]]| [ab]\/)scripts\/gen-authors\.sh/\1scripts\/gen-authors.sh/g' \ | |
| > ggml-src.patch.tmp | |
| mv ggml-src.patch.tmp ggml-src.patch | |
| git am -C${ctx} ggml-src.patch | |
| rm -v $SRC_LLAMA/ggml-src.patch | |
| fi | |
| # update last commit | |
| cd $SRC_GGML | |
| git log -1 --format=%H > $SRC_LLAMA/scripts/sync-ggml.last | |
| echo "Done" | |
| exit 0 | |