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
| cmake_minimum_required(VERSION 3.14...3.28) # for add_link_options and implicit target directories. | |
| project("llama.cpp" C CXX) | |
| include(CheckIncludeFileCXX) | |
| #set(CMAKE_WARN_DEPRECATED YES) | |
| set(CMAKE_WARN_UNUSED_CLI YES) | |
| set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | |
| if (NOT XCODE AND NOT MSVC AND NOT CMAKE_BUILD_TYPE) | |
| set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE) | |
| set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo") | |
| endif() | |
| message("CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}") | |
| # Add path to modules | |
| list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/") | |
| set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | |
| set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | |
| if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) | |
| set(LLAMA_STANDALONE ON) | |
| include(git-vars) | |
| # configure project version | |
| # TODO | |
| else() | |
| set(LLAMA_STANDALONE OFF) | |
| endif() | |
| option(LLAMA_USE_SYSTEM_GGML "Use system libggml" OFF) | |
| option(LLAMA_WASM_MEM64 "llama: use 64-bit memory in WASM builds" ON) | |
| if (EMSCRIPTEN) | |
| set(BUILD_SHARED_LIBS_DEFAULT OFF) | |
| # Use 64-bit memory to support backend_get_memory queries | |
| # TODO: analyze performance impact, see https://spidermonkey.dev/blog/2025/01/15/is-memory64-actually-worth-using | |
| if (LLAMA_WASM_MEM64) | |
| add_compile_options("-sMEMORY64=1") | |
| add_link_options("-sMEMORY64=1") | |
| endif() | |
| add_link_options("-sALLOW_MEMORY_GROWTH=1") | |
| option(LLAMA_WASM_SINGLE_FILE "llama: embed WASM inside the generated llama.js" OFF) | |
| option(LLAMA_BUILD_HTML "llama: build HTML file" ON) | |
| if (LLAMA_BUILD_HTML) | |
| set(CMAKE_EXECUTABLE_SUFFIX ".html") | |
| endif() | |
| else() | |
| if (MINGW) | |
| set(BUILD_SHARED_LIBS_DEFAULT OFF) | |
| else() | |
| set(BUILD_SHARED_LIBS_DEFAULT ON) | |
| endif() | |
| endif() | |
| option(BUILD_SHARED_LIBS "build shared libraries" ${BUILD_SHARED_LIBS_DEFAULT}) | |
| if (WIN32) | |
| add_compile_definitions(_CRT_SECURE_NO_WARNINGS) | |
| endif() | |
| if (MSVC) | |
| add_compile_options("$<$<COMPILE_LANGUAGE:C>:/utf-8>") | |
| add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/utf-8>") | |
| add_compile_options("$<$<COMPILE_LANGUAGE:C>:/bigobj>") | |
| add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/bigobj>") | |
| endif() | |
| if (LLAMA_STANDALONE) | |
| # enable parallel builds for msbuild | |
| list(APPEND CMAKE_VS_GLOBALS UseMultiToolTask=true) | |
| list(APPEND CMAKE_VS_GLOBALS EnforceProcessCountAcrossBuilds=true) | |
| endif() | |
| if (CMAKE_SYSTEM_NAME STREQUAL "iOS") | |
| set(LLAMA_TOOLS_INSTALL_DEFAULT OFF) | |
| else() | |
| set(LLAMA_TOOLS_INSTALL_DEFAULT ${LLAMA_STANDALONE}) | |
| endif() | |
| # | |
| # option list | |
| # | |
| # debug | |
| option(LLAMA_ALL_WARNINGS "llama: enable all compiler warnings" ON) | |
| option(LLAMA_ALL_WARNINGS_3RD_PARTY "llama: enable all compiler warnings in 3rd party libs" OFF) | |
| # build | |
| option(LLAMA_FATAL_WARNINGS "llama: enable -Werror flag" OFF) | |
| # sanitizers | |
| option(LLAMA_SANITIZE_THREAD "llama: enable thread sanitizer" OFF) | |
| option(LLAMA_SANITIZE_ADDRESS "llama: enable address sanitizer" OFF) | |
| option(LLAMA_SANITIZE_UNDEFINED "llama: enable undefined sanitizer" OFF) | |
| # utils | |
| option(LLAMA_BUILD_COMMON "llama: build common utils library" ${LLAMA_STANDALONE}) | |
| # extra artifacts | |
| option(LLAMA_BUILD_TESTS "llama: build tests" ${LLAMA_STANDALONE}) | |
| option(LLAMA_BUILD_TOOLS "llama: build tools" ${LLAMA_STANDALONE}) | |
| option(LLAMA_BUILD_EXAMPLES "llama: build examples" ${LLAMA_STANDALONE}) | |
| option(LLAMA_BUILD_SERVER "llama: build server example" ${LLAMA_STANDALONE}) | |
| option(LLAMA_BUILD_APP "llama: build the unified binary" ${LLAMA_STANDALONE}) | |
| option(LLAMA_BUILD_UI "llama: build the embedded Web UI for server" ON) | |
| option(LLAMA_USE_PREBUILT_UI "llama: use prebuilt UI from HF Bucket when available (requires LLAMA_BUILD_UI=ON)" ON) | |
| option(LLAMA_TOOLS_INSTALL "llama: install tools" ${LLAMA_TOOLS_INSTALL_DEFAULT}) | |
| option(LLAMA_TESTS_INSTALL "llama: install tests" ON) | |
| # 3rd party libs | |
| option(LLAMA_OPENSSL "llama: use openssl to support HTTPS" ON) | |
| option(LLAMA_LLGUIDANCE "llama-common: include LLGuidance library for structured output in common utils" OFF) | |
| # Required for relocatable CMake package | |
| include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/build-info.cmake) | |
| include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/common.cmake) | |
| if (NOT DEFINED LLAMA_BUILD_NUMBER) | |
| set(LLAMA_BUILD_NUMBER ${BUILD_NUMBER}) | |
| endif() | |
| if (NOT DEFINED LLAMA_BUILD_COMMIT) | |
| set(LLAMA_BUILD_COMMIT ${BUILD_COMMIT}) | |
| endif() | |
| set(LLAMA_INSTALL_VERSION 0.0.${LLAMA_BUILD_NUMBER}) | |
| # override ggml options | |
| set(GGML_ALL_WARNINGS ${LLAMA_ALL_WARNINGS}) | |
| set(GGML_FATAL_WARNINGS ${LLAMA_FATAL_WARNINGS}) | |
| # change the default for these ggml options | |
| if (NOT DEFINED GGML_LLAMAFILE) | |
| set(GGML_LLAMAFILE_DEFAULT ON) | |
| endif() | |
| if (NOT DEFINED GGML_CUDA_GRAPHS) | |
| set(GGML_CUDA_GRAPHS_DEFAULT ON) | |
| endif() | |
| # transition helpers | |
| function (llama_option_depr TYPE OLD) | |
| if (${OLD}) | |
| set(NEW "${ARGV2}") | |
| if(NEW) | |
| message(${TYPE} "${OLD} is deprecated, use ${NEW} instead") | |
| set(${NEW} ON PARENT_SCOPE) | |
| else() | |
| message(${TYPE} "${OLD} is deprecated and will be ignored") | |
| endif() | |
| endif() | |
| endfunction() | |
| llama_option_depr(FATAL_ERROR LLAMA_CUBLAS GGML_CUDA) | |
| llama_option_depr(WARNING LLAMA_CUDA GGML_CUDA) | |
| llama_option_depr(WARNING LLAMA_METAL GGML_METAL) | |
| llama_option_depr(WARNING LLAMA_METAL_EMBED_LIBRARY GGML_METAL_EMBED_LIBRARY) | |
| llama_option_depr(WARNING LLAMA_NATIVE GGML_NATIVE) | |
| llama_option_depr(WARNING LLAMA_RPC GGML_RPC) | |
| llama_option_depr(WARNING LLAMA_SYCL GGML_SYCL) | |
| llama_option_depr(WARNING LLAMA_SYCL_F16 GGML_SYCL_F16) | |
| llama_option_depr(WARNING LLAMA_CANN GGML_CANN) | |
| llama_option_depr(WARNING LLAMA_CURL) | |
| include("cmake/license.cmake") | |
| license_add_file("llama.cpp" "LICENSE") | |
| # | |
| # 3rd-party | |
| # | |
| if (LLAMA_USE_SYSTEM_GGML) | |
| message(STATUS "Using system-provided libggml, skipping ggml build") | |
| find_package(ggml REQUIRED) | |
| add_library(ggml ALIAS ggml::ggml) | |
| endif() | |
| if (NOT TARGET ggml AND NOT LLAMA_USE_SYSTEM_GGML) | |
| set(GGML_BUILD_NUMBER ${LLAMA_BUILD_NUMBER}) | |
| set(GGML_BUILD_COMMIT ${LLAMA_BUILD_COMMIT}) | |
| add_subdirectory(ggml) | |
| # ... otherwise assume ggml is added by a parent CMakeLists.txt | |
| endif() | |
| # | |
| # build the library | |
| # | |
| add_subdirectory(src) | |
| # | |
| # utils, programs, examples and tests | |
| # | |
| if (LLAMA_BUILD_COMMON) | |
| add_subdirectory(common) | |
| add_subdirectory(vendor/cpp-httplib) | |
| endif() | |
| if (LLAMA_BUILD_COMMON AND LLAMA_BUILD_TESTS AND NOT CMAKE_JS_VERSION) | |
| include(CTest) | |
| add_subdirectory(tests) | |
| endif() | |
| if (LLAMA_BUILD_COMMON AND LLAMA_BUILD_EXAMPLES) | |
| add_subdirectory(examples) | |
| add_subdirectory(pocs) | |
| endif() | |
| if (LLAMA_BUILD_COMMON AND LLAMA_BUILD_TOOLS) | |
| add_subdirectory(tools) | |
| endif() | |
| if (LLAMA_BUILD_APP) | |
| add_subdirectory(app) | |
| endif() | |
| # Standalone libmtmd build without pulling in the rest of the tools/ tree. | |
| # Useful when packaging just the mtmd library for language bindings (e.g. an | |
| # Apple XCFramework, or a WASM build). When the full tools build is enabled, | |
| # mtmd is already built by the tools/ subdirectory above; this hook only fires | |
| # when LLAMA_BUILD_TOOLS is OFF to avoid double-adding the target. | |
| option(LLAMA_BUILD_MTMD "llama: build tools/mtmd library standalone" OFF) | |
| if (LLAMA_BUILD_MTMD AND NOT (LLAMA_BUILD_COMMON AND LLAMA_BUILD_TOOLS)) | |
| add_subdirectory(tools/mtmd) | |
| endif() | |
| # | |
| # install | |
| # | |
| include(GNUInstallDirs) | |
| include(CMakePackageConfigHelpers) | |
| set(LLAMA_INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR} CACHE PATH "Location of header files") | |
| set(LLAMA_LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR} CACHE PATH "Location of library files") | |
| set(LLAMA_BIN_INSTALL_DIR ${CMAKE_INSTALL_BINDIR} CACHE PATH "Location of binary files") | |
| set(LLAMA_PUBLIC_HEADERS | |
| ${CMAKE_CURRENT_SOURCE_DIR}/include/llama.h | |
| ${CMAKE_CURRENT_SOURCE_DIR}/include/llama-cpp.h) | |
| set_target_properties(llama | |
| PROPERTIES | |
| PUBLIC_HEADER "${LLAMA_PUBLIC_HEADERS}") | |
| install(TARGETS llama LIBRARY PUBLIC_HEADER) | |
| if (LLAMA_BUILD_COMMON) | |
| install(TARGETS llama-common LIBRARY) | |
| endif() | |
| configure_package_config_file( | |
| ${CMAKE_CURRENT_SOURCE_DIR}/cmake/llama-config.cmake.in | |
| ${CMAKE_CURRENT_BINARY_DIR}/llama-config.cmake | |
| INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/llama | |
| PATH_VARS LLAMA_INCLUDE_INSTALL_DIR | |
| LLAMA_LIB_INSTALL_DIR | |
| LLAMA_BIN_INSTALL_DIR ) | |
| write_basic_package_version_file( | |
| ${CMAKE_CURRENT_BINARY_DIR}/llama-version.cmake | |
| VERSION ${LLAMA_INSTALL_VERSION} | |
| COMPATIBILITY SameMajorVersion) | |
| install(FILES ${CMAKE_CURRENT_BINARY_DIR}/llama-config.cmake | |
| ${CMAKE_CURRENT_BINARY_DIR}/llama-version.cmake | |
| DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/llama) | |
| configure_file(cmake/llama.pc.in | |
| "${CMAKE_CURRENT_BINARY_DIR}/llama.pc" | |
| @ONLY) | |
| install(FILES "${CMAKE_CURRENT_BINARY_DIR}/llama.pc" | |
| DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) | |