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
| import { describe, expect, it } from 'vitest'; | |
| import { render } from 'vitest-browser-svelte'; | |
| import McpServerFormWrapper from './components/McpServerFormWrapper.svelte'; | |
| const AUTHORIZATION_HEADER = 'Authorization'; | |
| const BEARER_PREFIX = 'Bearer '; | |
| const BEARER_PLACEHOLDER = 'Paste token here'; | |
| /** | |
| * Client-side tests for the McpServerForm bearer UI. | |
| * | |
| * The dedicated UI only "owns" Authorization headers that already carry a | |
| * Bearer scheme (heuristic check on the value). Other Authorization values | |
| * stay in the KV section so the user can still edit them verbatim. Storage | |
| * always goes through the same custom-headers slot, so a round-trip via this | |
| * UI produces exactly one `Authorization: Bearer <token>` entry. | |
| * | |
| * Equivalent parser coverage lives in `tests/unit/headers.test.ts`. | |
| */ | |
| describe('McpServerForm - Authorization / bearer UI', () => { | |
| function bearerInput(screen: Awaited<ReturnType<typeof render>>) { | |
| return screen.locator.getByPlaceholder(BEARER_PLACEHOLDER); | |
| } | |
| function capturedHeaders(screen: Awaited<ReturnType<typeof render>>) { | |
| return screen.getByTestId('captured-headers'); | |
| } | |
| it('mounts with the bearer input hidden when no auth header is present', async () => { | |
| const screen = await render(McpServerFormWrapper, { headers: '' }); | |
| await expect.element(screen.getByRole('textbox', { name: /server url/i })).toBeVisible(); | |
| await expect.element(bearerInput(screen)).not.toBeInTheDocument(); | |
| }); | |
| it('toggling Authorization shows the bearer input', async () => { | |
| const screen = await render(McpServerFormWrapper, { headers: '' }); | |
| await screen.getByRole('switch', { name: /authorization/i }).click(); | |
| await expect.element(bearerInput(screen)).toBeVisible(); | |
| }); | |
| it('typing a token writes the Authorization row with the Bearer prefix prepended', async () => { | |
| const screen = await render(McpServerFormWrapper, { headers: '' }); | |
| await screen.getByRole('switch', { name: /authorization/i }).click(); | |
| const token = 'super-secret'; | |
| await bearerInput(screen).fill(token); | |
| const expected = JSON.stringify({ [AUTHORIZATION_HEADER]: `${BEARER_PREFIX}${token}` }); | |
| await expect | |
| .element(capturedHeaders(screen)) | |
| .toHaveAttribute('data-captured-headers', expected); | |
| }); | |
| it('pre-existing Bearer header pre-fills the bearer input with the token stripped', async () => { | |
| const existing = JSON.stringify({ | |
| 'X-Trace-Id': 'abc', | |
| [AUTHORIZATION_HEADER]: `${BEARER_PREFIX}preexisting` | |
| }); | |
| const screen = await render(McpServerFormWrapper, { headers: existing }); | |
| await expect.element(bearerInput(screen)).toBeVisible(); | |
| await expect.element(bearerInput(screen)).toHaveValue('preexisting'); | |
| }); | |
| it('non-Bearer Authorization is ignored by the dedicated UI and stays in the KV section', async () => { | |
| const existing = JSON.stringify({ [AUTHORIZATION_HEADER]: 'Basic czNjcjpwYXNz' }); | |
| const screen = await render(McpServerFormWrapper, { headers: existing }); | |
| await expect.element(bearerInput(screen)).not.toBeInTheDocument(); | |
| const headerKeyInput = screen.getByPlaceholder('Header name'); | |
| await expect.element(headerKeyInput).toBeVisible(); | |
| }); | |
| it('engaging the token UI replaces a non-Bearer Authorization with the Bearer scheme', async () => { | |
| const existing = JSON.stringify({ [AUTHORIZATION_HEADER]: 'Basic old' }); | |
| const screen = await render(McpServerFormWrapper, { headers: existing }); | |
| await screen.getByRole('switch', { name: /authorization/i }).click(); | |
| await bearerInput(screen).fill('new'); | |
| const expected = JSON.stringify({ [AUTHORIZATION_HEADER]: `${BEARER_PREFIX}new` }); | |
| await expect | |
| .element(capturedHeaders(screen)) | |
| .toHaveAttribute('data-captured-headers', expected); | |
| }); | |
| it('toggling Authorization off with no token drops the Bearer row but keeps non-Bearer schemes', async () => { | |
| const existing = JSON.stringify({ [AUTHORIZATION_HEADER]: `${BEARER_PREFIX}xyz` }); | |
| const screen = await render(McpServerFormWrapper, { headers: existing }); | |
| await screen.getByRole('switch', { name: /authorization/i }).click(); | |
| await expect.element(capturedHeaders(screen)).toHaveAttribute('data-captured-headers', ''); | |
| }); | |
| it('toggling Authorization off when no Bearer row is present leaves headers untouched', async () => { | |
| const existing = JSON.stringify({ [AUTHORIZATION_HEADER]: 'Basic czNjcjpwYXNz' }); | |
| const screen = await render(McpServerFormWrapper, { headers: existing }); | |
| await screen.getByRole('switch', { name: /authorization/i }).click(); | |
| await screen.getByRole('switch', { name: /authorization/i }).click(); | |
| await expect | |
| .element(capturedHeaders(screen)) | |
| .toHaveAttribute('data-captured-headers', existing); | |
| }); | |
| it('clearing the bearer input drops the Authorization row', async () => { | |
| const existing = JSON.stringify({ [AUTHORIZATION_HEADER]: `${BEARER_PREFIX}xyz` }); | |
| const screen = await render(McpServerFormWrapper, { headers: existing }); | |
| await bearerInput(screen).fill(''); | |
| await expect.element(capturedHeaders(screen)).toHaveAttribute('data-captured-headers', ''); | |
| }); | |
| it('does not surface Bearer Authorization in the KV section even when pre-existing', async () => { | |
| const existing = JSON.stringify({ [AUTHORIZATION_HEADER]: `${BEARER_PREFIX}xyz` }); | |
| const screen = await render(McpServerFormWrapper, { headers: existing }); | |
| const headerKeyInput = screen.getByPlaceholder('Header name'); | |
| await expect.element(headerKeyInput).not.toBeInTheDocument(); | |
| }); | |
| }); | |