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
| /** | |
| * Maps file extensions to highlight.js language identifiers | |
| */ | |
| export function getLanguageFromFilename(filename: string): string { | |
| const extension = filename.toLowerCase().substring(filename.lastIndexOf('.')); | |
| switch (extension) { | |
| // JavaScript / TypeScript | |
| case '.js': | |
| case '.mjs': | |
| case '.cjs': | |
| return 'javascript'; | |
| case '.ts': | |
| case '.mts': | |
| case '.cts': | |
| return 'typescript'; | |
| case '.jsx': | |
| return 'javascript'; | |
| case '.tsx': | |
| return 'typescript'; | |
| // Web | |
| case '.html': | |
| case '.htm': | |
| return 'html'; | |
| case '.css': | |
| return 'css'; | |
| case '.scss': | |
| return 'scss'; | |
| case '.less': | |
| return 'less'; | |
| case '.vue': | |
| return 'html'; | |
| case '.svelte': | |
| return 'html'; | |
| // Data formats | |
| case '.json': | |
| return 'json'; | |
| case '.xml': | |
| return 'xml'; | |
| case '.yaml': | |
| case '.yml': | |
| return 'yaml'; | |
| case '.toml': | |
| return 'ini'; | |
| case '.csv': | |
| return 'plaintext'; | |
| // Programming languages | |
| case '.py': | |
| return 'python'; | |
| case '.java': | |
| return 'java'; | |
| case '.kt': | |
| case '.kts': | |
| return 'kotlin'; | |
| case '.scala': | |
| return 'scala'; | |
| case '.cpp': | |
| case '.cc': | |
| case '.cxx': | |
| case '.c++': | |
| return 'cpp'; | |
| case '.c': | |
| return 'c'; | |
| case '.h': | |
| case '.hpp': | |
| return 'cpp'; | |
| case '.cs': | |
| return 'csharp'; | |
| case '.go': | |
| return 'go'; | |
| case '.rs': | |
| return 'rust'; | |
| case '.rb': | |
| return 'ruby'; | |
| case '.php': | |
| return 'php'; | |
| case '.swift': | |
| return 'swift'; | |
| case '.dart': | |
| return 'dart'; | |
| case '.r': | |
| return 'r'; | |
| case '.lua': | |
| return 'lua'; | |
| case '.pl': | |
| case '.pm': | |
| return 'perl'; | |
| // Shell | |
| case '.sh': | |
| case '.bash': | |
| case '.zsh': | |
| return 'bash'; | |
| case '.bat': | |
| case '.cmd': | |
| return 'dos'; | |
| case '.ps1': | |
| return 'powershell'; | |
| // Database | |
| case '.sql': | |
| return 'sql'; | |
| // Markup / Documentation | |
| case '.md': | |
| case '.markdown': | |
| return 'markdown'; | |
| case '.tex': | |
| case '.latex': | |
| return 'latex'; | |
| case '.adoc': | |
| case '.asciidoc': | |
| return 'asciidoc'; | |
| // Config | |
| case '.ini': | |
| case '.cfg': | |
| case '.conf': | |
| return 'ini'; | |
| case '.dockerfile': | |
| return 'dockerfile'; | |
| case '.nginx': | |
| return 'nginx'; | |
| // Other | |
| case '.graphql': | |
| case '.gql': | |
| return 'graphql'; | |
| case '.proto': | |
| return 'protobuf'; | |
| case '.diff': | |
| case '.patch': | |
| return 'diff'; | |
| case '.log': | |
| return 'plaintext'; | |
| case '.txt': | |
| return 'plaintext'; | |
| default: | |
| return 'plaintext'; | |
| } | |
| } | |