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 { FileText, Loader2, AlertCircle, Download } from '@lucide/svelte'; | |
| import { Button } from '$lib/components/ui/button'; | |
| import { mcpStore } from '$lib/stores/mcp.svelte'; | |
| import { | |
| isImageMimeType, | |
| createBase64DataUrl, | |
| getResourceTextContent, | |
| getResourceBlobContent, | |
| downloadResourceContent | |
| } from '$lib/utils'; | |
| import { MimeTypeApplication, MimeTypeText } from '$lib/enums'; | |
| import { ActionIconCopyToClipboard } from '$lib/components/app'; | |
| import type { MCPResourceInfo, MCPResourceContent } from '$lib/types'; | |
| interface Props { | |
| resource: MCPResourceInfo | null; | |
| /** Pre-loaded content (e.g., from template resolution). Skips store fetch when provided. */ | |
| preloadedContent?: MCPResourceContent[] | null; | |
| class?: string; | |
| } | |
| let { resource, preloadedContent, class: className }: Props = $props(); | |
| let content = $state<MCPResourceContent[] | null>(null); | |
| let isLoading = $state(false); | |
| let error = $state<string | null>(null); | |
| $effect(() => { | |
| if (resource) { | |
| if (preloadedContent) { | |
| content = preloadedContent; | |
| isLoading = false; | |
| error = null; | |
| } else { | |
| loadContent(resource.uri); | |
| } | |
| } else { | |
| content = null; | |
| error = null; | |
| } | |
| }); | |
| async function loadContent(uri: string) { | |
| isLoading = true; | |
| error = null; | |
| try { | |
| const result = await mcpStore.readResource(uri); | |
| if (result) { | |
| content = result; | |
| } else { | |
| error = 'Failed to load resource content'; | |
| } | |
| } catch (e) { | |
| error = e instanceof Error ? e.message : 'Unknown error'; | |
| } finally { | |
| isLoading = false; | |
| } | |
| } | |
| function handleDownload() { | |
| const text = getResourceTextContent(content); | |
| if (!text || !resource) return; | |
| downloadResourceContent( | |
| text, | |
| resource.mimeType || MimeTypeText.PLAIN, | |
| resource.name || 'resource.txt' | |
| ); | |
| } | |
| </script> | |
| <div class={['flex flex-col gap-3', className]}> | |
| {#if !resource} | |
| <div class="flex flex-col items-center justify-center gap-2 py-8 text-muted-foreground"> | |
| <FileText class="h-8 w-8 opacity-50" /> | |
| <span class="text-sm">Select a resource to preview</span> | |
| </div> | |
| {:else} | |
| <div class="flex items-start justify-between gap-2"> | |
| <div class="min-w-0 flex-1"> | |
| <h3 class="truncate font-medium">{resource.title || resource.name}</h3> | |
| <p class="truncate text-xs text-muted-foreground">{resource.uri}</p> | |
| {#if resource.description} | |
| <p class="mt-1 text-sm text-muted-foreground">{resource.description}</p> | |
| {/if} | |
| </div> | |
| <div class="flex items-center gap-1"> | |
| <ActionIconCopyToClipboard | |
| text={getResourceTextContent(content)} | |
| canCopy={!isLoading && !!getResourceTextContent(content)} | |
| ariaLabel="Copy content" | |
| /> | |
| <Button | |
| variant="ghost" | |
| size="sm" | |
| class="h-7 w-7 p-0" | |
| onclick={handleDownload} | |
| disabled={isLoading || !getResourceTextContent(content)} | |
| title="Download content" | |
| > | |
| <Download class="h-3.5 w-3.5" /> | |
| </Button> | |
| </div> | |
| </div> | |
| <div class="min-h-[200px] overflow-auto rounded-md border bg-muted/30 p-3 break-all"> | |
| {#if isLoading} | |
| <div class="flex items-center justify-center py-8"> | |
| <Loader2 class="h-6 w-6 animate-spin text-muted-foreground" /> | |
| </div> | |
| {:else if error} | |
| <div class="flex flex-col items-center justify-center gap-2 py-8 text-red-500"> | |
| <AlertCircle class="h-6 w-6" /> | |
| <span class="text-sm">{error}</span> | |
| </div> | |
| {:else if content} | |
| {@const textContent = getResourceTextContent(content)} | |
| {@const blobContent = getResourceBlobContent(content)} | |
| {#if textContent} | |
| <pre class="font-mono text-xs break-words whitespace-pre-wrap">{textContent}</pre> | |
| {/if} | |
| {#each blobContent as blob (blob.uri)} | |
| {#if isImageMimeType(blob.mimeType ?? MimeTypeApplication.OCTET_STREAM)} | |
| <img | |
| src={createBase64DataUrl( | |
| blob.mimeType ?? MimeTypeApplication.OCTET_STREAM, | |
| blob.blob | |
| )} | |
| alt="Resource content" | |
| class="max-w-full rounded" | |
| /> | |
| {:else} | |
| <div class="flex items-center gap-2 rounded bg-muted p-2 text-sm text-muted-foreground"> | |
| <FileText class="h-4 w-4" /> | |
| <span>Binary content ({blob.mimeType || 'unknown type'})</span> | |
| </div> | |
| {/if} | |
| {/each} | |
| {#if !textContent && blobContent.length === 0} | |
| <div class="py-4 text-center text-sm text-muted-foreground">No content available</div> | |
| {/if} | |
| {/if} | |
| </div> | |
| {#if resource.mimeType || resource.annotations} | |
| <div class="flex flex-wrap gap-2 text-xs text-muted-foreground"> | |
| {#if resource.mimeType} | |
| <span class="rounded bg-muted px-1.5 py-0.5">{resource.mimeType}</span> | |
| {/if} | |
| {#if resource.annotations?.priority !== undefined} | |
| <span class="rounded bg-muted px-1.5 py-0.5"> | |
| Priority: {resource.annotations.priority} | |
| </span> | |
| {/if} | |
| <span class="rounded bg-muted px-1.5 py-0.5"> | |
| Server: {resource.serverName} | |
| </span> | |
| </div> | |
| {/if} | |
| {/if} | |
| </div> | |