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
| <script lang="ts"> | |
| import { ChevronDown, Loader2, Package } from '@lucide/svelte'; | |
| import * as Sheet from '$lib/components/ui/sheet'; | |
| import { useModelsSelector } from '$lib/hooks/use-models-selector.svelte'; | |
| import { | |
| DialogModelInformation, | |
| ModelId, | |
| ModelsSelectorList, | |
| SearchInput | |
| } from '$lib/components/app'; | |
| import ModelLoadHighlight from './ModelLoadHighlight.svelte'; | |
| import { ServerModelStatus } from '$lib/enums'; | |
| import { modelsStore, routerModels } from '$lib/stores/models.svelte'; | |
| import { modelLoadFraction } from '$lib/utils'; | |
| interface Props { | |
| class?: string; | |
| currentModel?: string | null; | |
| /** Callback when model changes. Return false to keep menu open (e.g., for validation failures) */ | |
| onModelChange?: (modelId: string, modelName: string) => Promise<boolean> | boolean | void; | |
| disabled?: boolean; | |
| forceForegroundText?: boolean; | |
| /** When true, user's global selection takes priority over currentModel (for form selector) */ | |
| useGlobalSelection?: boolean; | |
| } | |
| let { | |
| class: className = '', | |
| currentModel = null, | |
| onModelChange, | |
| disabled = false, | |
| forceForegroundText = false, | |
| useGlobalSelection = false | |
| }: Props = $props(); | |
| let sheetOpen = $state(false); | |
| const ms = useModelsSelector({ | |
| currentModel: () => currentModel, | |
| useGlobalSelection: () => useGlobalSelection, | |
| onModelChange: () => onModelChange, | |
| onOpenChange: (open) => { | |
| sheetOpen = open; | |
| } | |
| }); | |
| export function open() { | |
| ms.handleOpenChange(true); | |
| } | |
| function handleSheetOpenChange(open: boolean) { | |
| if (!open) { | |
| ms.handleOpenChange(false); | |
| } | |
| } | |
| </script> | |
| <div class={['relative inline-flex flex-col items-end gap-1', className]}> | |
| {#if ms.loading && ms.options.length === 0 && ms.isRouter} | |
| <div class="flex items-center gap-2 text-xs text-muted-foreground"> | |
| <Loader2 class="h-3.5 w-3.5 animate-spin" /> | |
| Loading models… | |
| </div> | |
| {:else if ms.options.length === 0 && ms.isRouter} | |
| <p class="text-xs text-muted-foreground">No models available.</p> | |
| {:else} | |
| {@const selectedOption = ms.getDisplayOption()} | |
| {@const triggerModel = selectedOption?.model} | |
| {@const triggerStatus = triggerModel | |
| ? routerModels().find((m) => m.id === triggerModel)?.status?.value | |
| : undefined} | |
| {@const triggerLoading = | |
| !!triggerModel && | |
| (triggerStatus === ServerModelStatus.LOADING || | |
| modelsStore.isModelOperationInProgress(triggerModel))} | |
| {@const triggerLoadPercent = triggerLoading | |
| ? Math.round(modelLoadFraction(modelsStore.getLoadProgress(triggerModel)) * 100) | |
| : 0} | |
| {#if ms.isRouter} | |
| <button | |
| type="button" | |
| class={[ | |
| `relative inline-flex cursor-pointer items-center gap-1.5 rounded-sm bg-background px-1.5 py-1 text-xs shadow-sm transition hover:bg-muted-foreground/20 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60 max-sm:px-3 max-sm:py-2 max-sm:text-sm dark:bg-muted-foreground/15 dark:text-secondary-foreground`, | |
| !ms.isCurrentModelInCache | |
| ? 'bg-red-400/10 !text-red-400 hover:bg-red-400/20 hover:text-red-400' | |
| : forceForegroundText | |
| ? 'text-foreground' | |
| : ms.isHighlightedCurrentModelActive | |
| ? 'text-foreground' | |
| : 'text-foreground', | |
| sheetOpen && 'text-foreground' | |
| ]} | |
| style="max-width: min(calc(100cqw - 9rem), 20rem)" | |
| disabled={disabled || ms.updating} | |
| onclick={() => ms.handleOpenChange(true)} | |
| > | |
| <Package class="h-3.5 w-3.5 shrink-0" /> | |
| {#if !selectedOption} | |
| <span class="min-w-0 font-medium">Select model</span> | |
| {:else} | |
| <ModelId | |
| class="text-xs" | |
| modelId={selectedOption?.model || ''} | |
| hideQuantization | |
| hideTags | |
| hideOrgName | |
| /> | |
| {/if} | |
| {#if ms.updating || ms.isLoadingModel} | |
| <Loader2 class="h-3 w-3.5 shrink-0 animate-spin" /> | |
| {:else} | |
| <ChevronDown class="h-3 w-3.5 shrink-0" /> | |
| {/if} | |
| {#if triggerLoading} | |
| <ModelLoadHighlight percent={triggerLoadPercent} /> | |
| {/if} | |
| </button> | |
| <Sheet.Root bind:open={sheetOpen} onOpenChange={handleSheetOpenChange}> | |
| <Sheet.Content side="bottom" class="max-h-[85vh] gap-1"> | |
| <Sheet.Header> | |
| <Sheet.Title>Select Model</Sheet.Title> | |
| <Sheet.Description class="sr-only"> | |
| Choose a model to use for the conversation | |
| </Sheet.Description> | |
| </Sheet.Header> | |
| <div class="flex flex-col gap-1 pb-4"> | |
| <div class="mb-3 px-4"> | |
| <SearchInput | |
| placeholder="Search models..." | |
| value={ms.searchTerm} | |
| onInput={(v) => ms.setSearchTerm(v)} | |
| /> | |
| </div> | |
| <div class="max-h-[60vh] overflow-y-auto px-2"> | |
| {#if !ms.isCurrentModelInCache && currentModel} | |
| <button | |
| type="button" | |
| class="flex w-full cursor-not-allowed items-center rounded-md bg-red-400/10 px-3 py-2.5 text-left text-sm text-red-400" | |
| disabled | |
| > | |
| <span class="min-w-0 flex-1 truncate"> | |
| {selectedOption?.name || currentModel} | |
| </span> | |
| <span class="ml-2 text-xs whitespace-nowrap opacity-70">(not available)</span> | |
| </button> | |
| <div class="my-1 h-px bg-border"></div> | |
| {/if} | |
| {#if ms.filteredOptions.length === 0} | |
| <p class="px-3 py-3 text-center text-sm text-muted-foreground">No models found.</p> | |
| {/if} | |
| <ModelsSelectorList | |
| groups={ms.groupedFilteredOptions} | |
| {currentModel} | |
| activeId={ms.activeId} | |
| sectionHeaderClass="px-2 py-2 text-xs font-semibold text-muted-foreground/60 select-none" | |
| orgHeaderClass="px-2 py-2 text-xs font-semibold text-muted-foreground/60 select-none [&:not(:first-child)]:mt-2" | |
| onSelect={ms.handleSelect} | |
| onInfoClick={ms.handleInfoClick} | |
| /> | |
| </div> | |
| </div> | |
| </Sheet.Content> | |
| </Sheet.Root> | |
| {:else} | |
| <button | |
| class={[ | |
| `inline-flex cursor-pointer items-center gap-1.5 rounded-sm bg-background px-1.5 py-1 text-xs shadow-sm transition hover:bg-muted-foreground/20 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60 dark:bg-muted-foreground/15 dark:text-secondary-foreground`, | |
| !ms.isCurrentModelInCache | |
| ? 'bg-red-400/10 !text-red-400 hover:bg-red-400/20 hover:text-red-400' | |
| : forceForegroundText | |
| ? 'text-foreground' | |
| : ms.isHighlightedCurrentModelActive | |
| ? 'text-foreground' | |
| : 'text-foreground' | |
| ]} | |
| style="max-width: min(calc(100cqw - 6.5rem), 32rem)" | |
| onclick={() => ms.handleOpenChange(true)} | |
| disabled={disabled || ms.updating} | |
| > | |
| <Package class="h-3.5 w-3.5 shrink-0" /> | |
| <ModelId modelId={selectedOption?.model || ''} class="font-medium" hideQuantization /> | |
| {#if ms.updating} | |
| <Loader2 class="h-3 w-3.5 shrink-0 animate-spin" /> | |
| {/if} | |
| </button> | |
| {/if} | |
| {/if} | |
| </div> | |
| {#if ms.showModelDialog} | |
| <DialogModelInformation | |
| open={ms.showModelDialog} | |
| onOpenChange={(v) => ms.setShowModelDialog(v)} | |
| modelId={ms.infoModelId} | |
| /> | |
| {/if} | |