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
TdAI / llama.cpp /tools /ui /src /lib /components /app /settings /SettingsChat /SettingsChatFields.svelte
| <script lang="ts"> | |
| import { RotateCcw, FlaskConical } from '@lucide/svelte'; | |
| import { Checkbox } from '$lib/components/ui/checkbox'; | |
| import { Input } from '$lib/components/ui/input'; | |
| import Label from '$lib/components/ui/label/label.svelte'; | |
| import * as Select from '$lib/components/ui/select'; | |
| import { Textarea } from '$lib/components/ui/textarea'; | |
| import { SETTING_CONFIG_INFO, SETTINGS_KEYS } from '$lib/constants'; | |
| import { SettingsFieldType } from '$lib/enums/settings.enums'; | |
| import { settingsStore } from '$lib/stores/settings.svelte'; | |
| import { serverStore } from '$lib/stores/server.svelte'; | |
| import { modelsStore, selectedModelName, propsCacheVersion } from '$lib/stores/models.svelte'; | |
| import { normalizeFloatingPoint } from '$lib/utils/precision'; | |
| import { SettingsChatParameterSourceIndicator } from '$lib/components/app/settings'; | |
| import type { Component } from 'svelte'; | |
| interface Props { | |
| fields: SettingsFieldConfig[]; | |
| localConfig: SettingsConfigType; | |
| onConfigChange: (key: string, value: string | boolean) => void; | |
| onThemeChange?: (theme: string) => void; | |
| } | |
| let { fields, localConfig, onConfigChange, onThemeChange }: Props = $props(); | |
| let currentModelParams = $derived.by(() => { | |
| propsCacheVersion(); | |
| if (serverStore.isRouterMode) { | |
| const currentModelName = selectedModelName(); | |
| if (currentModelName) { | |
| const currentModelProps = modelsStore.getModelProps(currentModelName); | |
| return (currentModelProps?.default_generation_settings?.params ?? {}) as Record< | |
| string, | |
| unknown | |
| >; | |
| } | |
| } | |
| return (serverStore.defaultParams ?? {}) as Record<string, unknown>; | |
| }); | |
| </script> | |
| {#each fields as field (field.key)} | |
| <div class="space-y-2"> | |
| {#if field.type === SettingsFieldType.INPUT} | |
| { currentValue = String(localConfig[field.key] ?? '')} | |
| { serverDefault = currentModelParams[field.key]} | |
| { isCustomRealTime = (() => { | |
| if (serverDefault == null) return false; | |
| if (currentValue === '') return false; | |
| const numericInput = parseFloat(currentValue); | |
| const normalizedInput = !isNaN(numericInput) | |
| ? Math.round(numericInput * 1000000) / 1000000 | |
| : currentValue; | |
| const normalizedDefault = | |
| typeof serverDefault === 'number' | |
| ? Math.round(serverDefault * 1000000) / 1000000 | |
| : serverDefault; | |
| return normalizedInput !== normalizedDefault; | |
| })()} | |
| <div class="flex items-center gap-2"> | |
| <Label for={field.key} class="flex items-center gap-1.5 text-sm font-medium"> | |
| {field.label} | |
| {#if field.isExperimental} | |
| <FlaskConical class="h-3.5 w-3.5 text-muted-foreground" /> | |
| {/if} | |
| </Label> | |
| {#if isCustomRealTime} | |
| <SettingsChatParameterSourceIndicator /> | |
| {/if} | |
| </div> | |
| <div class="relative w-full"> | |
| <Input | |
| id={field.key} | |
| type={field.isPositiveInteger ? 'number' : 'text'} | |
| {...field.isPositiveInteger ? { min: '1', step: '1' } : {}} | |
| value={currentValue} | |
| oninput={(e) => { | |
| // Update local config immediately for real-time badge feedback | |
| onConfigChange(field.key, e.currentTarget.value); | |
| }} | |
| placeholder={currentModelParams[field.key] != null | |
| ? `Default: ${normalizeFloatingPoint(currentModelParams[field.key])}` | |
| : ''} | |
| class="w-full {isCustomRealTime ? 'pr-8' : ''}" | |
| /> | |
| {#if isCustomRealTime} | |
| <button | |
| type="button" | |
| onclick={() => { | |
| settingsStore.resetParameterToServerDefault(field.key); | |
| onConfigChange(field.key, ''); | |
| }} | |
| class="absolute top-1/2 right-2 inline-flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded transition-colors hover:bg-muted" | |
| aria-label="Reset to default" | |
| title="Reset to default" | |
| > | |
| <RotateCcw class="h-3 w-3" /> | |
| </button> | |
| {/if} | |
| </div> | |
| {#if field.help || SETTING_CONFIG_INFO[field.key]} | |
| <p class="mt-1 text-xs text-muted-foreground"> | |
| { field.help || SETTING_CONFIG_INFO[field.key]} | |
| </p> | |
| {/if} | |
| {:else if field.type === SettingsFieldType.TEXTAREA} | |
| {#if field.label} | |
| <Label for={field.key} class="block flex items-center gap-1.5 text-sm font-medium"> | |
| {field.label} | |
| {#if field.isExperimental} | |
| <FlaskConical class="h-3.5 w-3.5 text-muted-foreground" /> | |
| {/if} | |
| </Label> | |
| {/if} | |
| <Textarea | |
| id={field.key} | |
| value={String(localConfig[field.key] ?? '')} | |
| onchange={(e) => onConfigChange(field.key, e.currentTarget.value)} | |
| placeholder="" | |
| class="min-h-[10rem] w-full md:max-w-3xl" | |
| /> | |
| {#if field.help || SETTING_CONFIG_INFO[field.key]} | |
| <p class="mt-1 text-xs text-muted-foreground"> | |
| {field.help || SETTING_CONFIG_INFO[field.key]} | |
| </p> | |
| {/if} | |
| {#if field.key === SETTINGS_KEYS.SYSTEM_MESSAGE} | |
| <div class="mt-3 flex items-center gap-2"> | |
| <Checkbox | |
| id="showSystemMessage" | |
| checked={Boolean(localConfig.showSystemMessage ?? true)} | |
| onCheckedChange={(checked) => | |
| onConfigChange(SETTINGS_KEYS.SHOW_SYSTEM_MESSAGE, Boolean(checked))} | |
| /> | |
| <Label for="showSystemMessage" class="cursor-pointer text-sm font-normal"> | |
| Show system message in conversations | |
| </Label> | |
| </div> | |
| {/if} | |
| {:else if field.type === SettingsFieldType.SELECT} | |
| { selectedOption = field.options?.find( | |
| (opt: { value: string; label: string; icon?: Component }) => | |
| opt.value === localConfig[field.key] | |
| )} | |
| { currentValue = localConfig[field.key]} | |
| { serverDefault = currentModelParams[field.key]} | |
| { isCustomRealTime = (() => { | |
| if (serverDefault == null) return false; | |
| if (currentValue === '' || currentValue === undefined) return false; | |
| return currentValue !== serverDefault; | |
| })()} | |
| <div class="flex items-center gap-2"> | |
| <Label for={field.key} class="flex items-center gap-1.5 text-sm font-medium"> | |
| {field.label} | |
| {#if field.isExperimental} | |
| <FlaskConical class="h-3.5 w-3.5 text-muted-foreground" /> | |
| {/if} | |
| </Label> | |
| {#if isCustomRealTime} | |
| <SettingsChatParameterSourceIndicator /> | |
| {/if} | |
| </div> | |
| <Select.Root | |
| type="single" | |
| value={currentValue} | |
| onValueChange={(value) => { | |
| if (field.key === SETTINGS_KEYS.THEME && value && onThemeChange) { | |
| onThemeChange(value); | |
| } else { | |
| onConfigChange(field.key, value); | |
| } | |
| }} | |
| > | |
| <div class="relative w-full md:w-auto"> | |
| <Select.Trigger class="w-full"> | |
| <div class="flex items-center gap-2"> | |
| {#if selectedOption?.icon} | |
| {@const IconComponent = selectedOption.icon} | |
| <IconComponent class="h-4 w-4" /> | |
| {/if} | |
| {selectedOption?.label || `Select ${field.label.toLowerCase()}`} | |
| </div> | |
| </Select.Trigger> | |
| {#if isCustomRealTime} | |
| <button | |
| type="button" | |
| onclick={() => { | |
| settingsStore.resetParameterToServerDefault(field.key); | |
| onConfigChange(field.key, ''); | |
| }} | |
| class="absolute top-1/2 right-8 inline-flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded transition-colors hover:bg-muted" | |
| aria-label="Reset to default" | |
| title="Reset to default" | |
| > | |
| <RotateCcw class="h-3 w-3" /> | |
| </button> | |
| {/if} | |
| </div> | |
| <Select.Content> | |
| {#if field.options} | |
| {#each field.options as option (option.value)} | |
| <Select.Item value={option.value} label={option.label}> | |
| <div class="flex items-center gap-2"> | |
| {#if option.icon} | |
| {@const IconComponent = option.icon} | |
| <IconComponent class="h-4 w-4" /> | |
| {/if} | |
| {option.label} | |
| </div> | |
| </Select.Item> | |
| {/each} | |
| {/if} | |
| </Select.Content> | |
| </Select.Root> | |
| {#if field.help || SETTING_CONFIG_INFO[field.key]} | |
| <p class="mt-1 text-xs text-muted-foreground"> | |
| {field.help || SETTING_CONFIG_INFO[field.key]} | |
| </p> | |
| {/if} | |
| {:else if field.type === SettingsFieldType.CHECKBOX} | |
| <div class="flex items-start space-x-3"> | |
| <Checkbox | |
| id={field.key} | |
| checked={Boolean(localConfig[field.key])} | |
| onCheckedChange={(checked) => onConfigChange(field.key, checked)} | |
| class="mt-1" | |
| /> | |
| <div class="space-y-1"> | |
| <label | |
| for={field.key} | |
| class="flex cursor-pointer items-center gap-1.5 pt-1 pb-0.5 text-sm leading-none font-medium" | |
| > | |
| {field.label} | |
| {#if field.isExperimental} | |
| <FlaskConical class="h-3.5 w-3.5 text-muted-foreground" /> | |
| {/if} | |
| </label> | |
| {#if field.help || SETTING_CONFIG_INFO[field.key]} | |
| <p class="text-xs text-muted-foreground"> | |
| {field.help || SETTING_CONFIG_INFO[field.key]} | |
| </p> | |
| {/if} | |
| </div> | |
| </div> | |
| {/if} | |
| </div> | |
| {/each} | |