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
| {#- Copyright 2025-present the Unsloth team. All rights reserved. #} | |
| {#- Licensed under the Apache License, Version 2.0 (the "License") #} | |
| {#- Edits made by Unsloth to make it work for most inference engines #} | |
| {# βββββ defaults βββββ #} | |
| {%- if enable_thinking is not defined -%} | |
| {%- set enable_thinking = true -%} | |
| {%- endif -%} | |
| {# βββββ reasoning mode βββββ #} | |
| {%- if enable_thinking -%} | |
| {%- set reasoning_mode = "/think" -%} | |
| {%- else -%} | |
| {%- set reasoning_mode = "/no_think" -%} | |
| {%- endif -%} | |
| {# βββββ header (system message) βββββ #} | |
| {{- "<|im_start|>system\n" -}} | |
| {%- if messages[0].role == "system" -%} | |
| {%- set system_message = messages[0].content -%} | |
| {%- if "/no_think" in system_message -%} | |
| {%- set reasoning_mode = "/no_think" -%} | |
| {%- elif "/think" in system_message -%} | |
| {%- set reasoning_mode = "/think" -%} | |
| {%- endif -%} | |
| {%- set custom_instructions = system_message.replace("/no_think", "") -%} | |
| {%- set custom_instructions = custom_instructions.replace("/think", "") -%} | |
| {%- set custom_instructions = custom_instructions.rstrip() -%} | |
| {%- endif -%} | |
| {{- "## Metadata\n\n" -}} | |
| {{- "Knowledge Cutoff Date: June 2025\n" -}} | |
| {{- "Reasoning Mode: " + reasoning_mode + "\n\n" -}} | |
| {{- "## Custom Instructions\n\n" -}} | |
| {%- if custom_instructions -%} | |
| {{- custom_instructions + "\n\n" -}} | |
| {%- elif reasoning_mode == "/think" -%} | |
| {{- "You are a helpful AI assistant named SmolLM, trained by Hugging Face. Your role as an assistant involves thoroughly exploring questions through a systematic thinking process before providing the final precise and accurate solutions. This requires engaging in a comprehensive cycle of analysis, summarizing, exploration, reassessment, reflection, backtracking, and iteration to develop well-considered thinking process. Please structure your response into two main sections: Thought and Solution using the specified format: <think> Thought section </think> Solution section. In the Thought section, detail your reasoning process in steps. Each step should include detailed considerations such as analysing questions, summarizing relevant findings, brainstorming new ideas, verifying the accuracy of the current steps, refining any errors, and revisiting previous steps. In the Solution section, based on various attempts, explorations, and reflections from the Thought section, systematically present the final solution that you deem correct. The Solution section should be logical, accurate, and concise and detail necessary steps needed to reach the conclusion.\n\n" -}} | |
| {%- else -%} | |
| {{- "You are a helpful AI assistant named SmolLM, trained by Hugging Face.\n\n" -}} | |
| {%- endif -%} | |
| {{- "<|im_end|>\n" -}} | |
| {# βββββ main loop βββββ #} | |
| {%- for message in messages -%} | |
| {%- set content = message.content if message.content is string else "" -%} | |
| {%- if message.role == "user" -%} | |
| {{ "<|im_start|>" + message.role + "\n" + content + "<|im_end|>\n" }} | |
| {%- elif message.role == "assistant" -%} | |
| {%- if reasoning_mode == "/think" -%} | |
| {{ "<|im_start|>assistant\n" + content.lstrip("\n") + "<|im_end|>\n" }} | |
| {%- else -%} | |
| {{ "<|im_start|>assistant\n" + "<think>\n\n</think>\n" + content.lstrip("\n") + "<|im_end|>\n" }} | |
| {%- endif -%} | |
| {%- elif message.role == "tool" -%} | |
| {{ "<|im_start|>" + "user\n" + content + "<|im_end|>\n" }} | |
| {%- endif -%} | |
| {%- endfor -%} | |
| {# βββββ generation prompt βββββ #} | |
| {%- if add_generation_prompt -%} | |
| {%- if reasoning_mode == "/think" -%} | |
| {{ "<|im_start|>assistant\n" }} | |
| {%- else -%} | |
| {{ "<|im_start|>assistant\n" + "<think>\n\n</think>\n" }} | |
| {%- endif -%} | |
| {%- endif -%} | |