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
| typedef enum ApirBackendCommandType { | |
| /* device */ | |
| APIR_COMMAND_TYPE_DEVICE_GET_DEVICE_COUNT = 0, | |
| APIR_COMMAND_TYPE_DEVICE_GET_COUNT = 1, | |
| APIR_COMMAND_TYPE_DEVICE_GET_NAME = 2, | |
| APIR_COMMAND_TYPE_DEVICE_GET_DESCRIPTION = 3, | |
| APIR_COMMAND_TYPE_DEVICE_GET_TYPE = 4, | |
| APIR_COMMAND_TYPE_DEVICE_GET_MEMORY = 5, | |
| APIR_COMMAND_TYPE_DEVICE_SUPPORTS_OP = 6, | |
| APIR_COMMAND_TYPE_DEVICE_GET_BUFFER_TYPE = 7, | |
| APIR_COMMAND_TYPE_DEVICE_GET_PROPS = 8, | |
| APIR_COMMAND_TYPE_DEVICE_BUFFER_FROM_PTR = 9, | |
| /* buffer-type */ | |
| APIR_COMMAND_TYPE_BUFFER_TYPE_GET_NAME = 10, | |
| APIR_COMMAND_TYPE_BUFFER_TYPE_GET_ALIGNMENT = 11, | |
| APIR_COMMAND_TYPE_BUFFER_TYPE_GET_MAX_SIZE = 12, | |
| APIR_COMMAND_TYPE_BUFFER_TYPE_IS_HOST = 13, | |
| APIR_COMMAND_TYPE_BUFFER_TYPE_ALLOC_BUFFER = 14, | |
| APIR_COMMAND_TYPE_BUFFER_TYPE_GET_ALLOC_SIZE = 15, | |
| /* buffer */ | |
| APIR_COMMAND_TYPE_BUFFER_GET_BASE = 16, | |
| APIR_COMMAND_TYPE_BUFFER_SET_TENSOR = 17, | |
| APIR_COMMAND_TYPE_BUFFER_GET_TENSOR = 18, | |
| APIR_COMMAND_TYPE_BUFFER_CPY_TENSOR = 19, | |
| APIR_COMMAND_TYPE_BUFFER_CLEAR = 20, | |
| APIR_COMMAND_TYPE_BUFFER_FREE_BUFFER = 21, | |
| /* backend */ | |
| APIR_COMMAND_TYPE_BACKEND_GRAPH_COMPUTE = 22, | |
| // last command_type index + 1 | |
| APIR_BACKEND_DISPATCH_TABLE_COUNT = 23, | |
| } ApirBackendCommandType; | |
| static inline const char * apir_dispatch_command_name(ApirBackendCommandType type) { | |
| switch (type) { | |
| /* device */ | |
| case APIR_COMMAND_TYPE_DEVICE_GET_DEVICE_COUNT: | |
| return "device_get_device_count"; | |
| case APIR_COMMAND_TYPE_DEVICE_GET_COUNT: | |
| return "device_get_count"; | |
| case APIR_COMMAND_TYPE_DEVICE_GET_NAME: | |
| return "device_get_name"; | |
| case APIR_COMMAND_TYPE_DEVICE_GET_DESCRIPTION: | |
| return "device_get_description"; | |
| case APIR_COMMAND_TYPE_DEVICE_GET_TYPE: | |
| return "device_get_type"; | |
| case APIR_COMMAND_TYPE_DEVICE_GET_MEMORY: | |
| return "device_get_memory"; | |
| case APIR_COMMAND_TYPE_DEVICE_SUPPORTS_OP: | |
| return "device_supports_op"; | |
| case APIR_COMMAND_TYPE_DEVICE_GET_BUFFER_TYPE: | |
| return "device_get_buffer_type"; | |
| case APIR_COMMAND_TYPE_DEVICE_GET_PROPS: | |
| return "device_get_props"; | |
| case APIR_COMMAND_TYPE_DEVICE_BUFFER_FROM_PTR: | |
| return "device_buffer_from_ptr"; | |
| /* buffer-type */ | |
| case APIR_COMMAND_TYPE_BUFFER_TYPE_GET_NAME: | |
| return "buffer_type_get_name"; | |
| case APIR_COMMAND_TYPE_BUFFER_TYPE_GET_ALIGNMENT: | |
| return "buffer_type_get_alignment"; | |
| case APIR_COMMAND_TYPE_BUFFER_TYPE_GET_MAX_SIZE: | |
| return "buffer_type_get_max_size"; | |
| case APIR_COMMAND_TYPE_BUFFER_TYPE_IS_HOST: | |
| return "buffer_type_is_host"; | |
| case APIR_COMMAND_TYPE_BUFFER_TYPE_ALLOC_BUFFER: | |
| return "buffer_type_alloc_buffer"; | |
| case APIR_COMMAND_TYPE_BUFFER_TYPE_GET_ALLOC_SIZE: | |
| return "buffer_type_get_alloc_size"; | |
| /* buffer */ | |
| case APIR_COMMAND_TYPE_BUFFER_GET_BASE: | |
| return "buffer_get_base"; | |
| case APIR_COMMAND_TYPE_BUFFER_SET_TENSOR: | |
| return "buffer_set_tensor"; | |
| case APIR_COMMAND_TYPE_BUFFER_GET_TENSOR: | |
| return "buffer_get_tensor"; | |
| case APIR_COMMAND_TYPE_BUFFER_CPY_TENSOR: | |
| return "buffer_cpy_tensor"; | |
| case APIR_COMMAND_TYPE_BUFFER_CLEAR: | |
| return "buffer_clear"; | |
| case APIR_COMMAND_TYPE_BUFFER_FREE_BUFFER: | |
| return "buffer_free_buffer"; | |
| /* backend */ | |
| case APIR_COMMAND_TYPE_BACKEND_GRAPH_COMPUTE: | |
| return "backend_graph_compute"; | |
| default: | |
| return "unknown"; | |
| } | |
| } | |