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
| ggml_cgraph * clip_graph_qwen3a::build() { | |
| // Ref implementation: https://github.com/QwenLM/Qwen3-ASR/blob/main/qwen_asr/core/transformers_backend/modeling_qwen3_asr.py | |
| // inp_raw: [n_frames, n_mel, 1] (nx=n_frames, ny=n_mel) | |
| ggml_tensor * inp = build_inp_raw(1); | |
| const int64_t n_frames = inp->ne[0]; // total frames, padded to multiple of chunk_size | |
| const int64_t n_mel = inp->ne[1]; // 128 | |
| const int64_t chunk_size = 100; // n_window * 2 (n_window=50 from model config) | |
| const int64_t n_chunks = n_frames / chunk_size; | |
| GGML_ASSERT(n_frames % chunk_size == 0); // preprocessor should already pad the input | |
| GGML_ASSERT(inp->type == GGML_TYPE_F32); | |
| // View mel spectrogram as batched 100-frame chunks: [chunk_size, n_mel, 1, n_chunks] | |
| inp = ggml_view_4d(ctx0, inp, | |
| chunk_size, n_mel, 1, n_chunks, | |
| n_frames * (int64_t)sizeof(float), // nb[1]: stride over mel bins | |
| chunk_size * (int64_t)sizeof(float), // nb[2]: stride for C=1 (unused) | |
| chunk_size * (int64_t)sizeof(float), // nb[3]: stride over chunks | |
| 0); | |
| inp = ggml_cont(ctx0, inp); | |
| cb(inp, "inp_chunks", -1); | |
| // 3 x conv2d + gelu | |
| { | |
| // conv output [OW, OH, C_out, n_chunks] | |
| auto conv_block = [&](ggml_tensor * x, ggml_tensor * w, ggml_tensor * b) { | |
| x = ggml_conv_2d(ctx0, w, x, 2, 2, 1, 1, 1, 1); | |
| if (b) { | |
| x = ggml_add(ctx0, x, ggml_reshape_4d(ctx0, b, 1, 1, x->ne[2], 1)); | |
| } | |
| return ggml_gelu_erf(ctx0, x); | |
| }; | |
| inp = conv_block(inp, model.conv2d_1_w, model.conv2d_1_b); | |
| inp = conv_block(inp, model.conv2d_2_w, model.conv2d_2_b); | |
| inp = conv_block(inp, model.conv2d_3_w, model.conv2d_3_b); | |
| // inp: [OW=13, OH=16, OC=480, n_chunks] | |
| cb(inp, "after_conv_blocks", -1); | |
| } | |
| // permute [OW=25, OH=16, OC=480, n_chunks] -> [OH=16, OC=480, OW=25, n_chunks] | |
| // reshape to [OH*OC=7680, OW*n_chunks] | |
| // feature index h+16*c = c*16+f (matches python code) | |
| inp = ggml_cont(ctx0, ggml_permute(ctx0, inp, 2, 0, 1, 3)); | |
| inp = ggml_reshape_2d(ctx0, inp, inp->ne[0] * inp->ne[1], inp->ne[2] * inp->ne[3]); | |
| // Project to d_model: [d_model, 25*n_chunks] | |
| inp = ggml_mul_mat(ctx0, model.conv_out_w, inp); | |
| if (model.conv_out_b) { | |
| inp = ggml_add(ctx0, inp, model.conv_out_b); | |
| } | |
| cb(inp, "after_conv_out", -1); | |
| const int64_t n_pos = inp->ne[1]; // 25 * n_chunks | |
| // Per-chunk positional embeddings: repeat pos[0:13] for each chunk | |
| // (position indices reset 0..12 per chunk, not sequential across chunks) | |
| { | |
| const int64_t tokens_per_chunk = n_pos / n_chunks; // 13 | |
| ggml_tensor * pos_tmp = ggml_view_2d(ctx0, model.position_embeddings, | |
| model.position_embeddings->ne[0], tokens_per_chunk, | |
| model.position_embeddings->nb[1], 0); | |
| ggml_tensor * tgt = ggml_new_tensor_2d(ctx0, GGML_TYPE_F32, | |
| model.position_embeddings->ne[0], n_pos); | |
| inp = ggml_add(ctx0, inp, ggml_repeat(ctx0, pos_tmp, tgt)); | |
| } | |
| ggml_tensor * cur = build_vit(inp, n_pos, | |
| NORM_TYPE_NORMAL, hparams.ffn_op, | |
| nullptr, // pos embd already added above | |
| nullptr); | |
| cb(cur, "after_transformer", -1); | |
| // MLP projector | |
| cur = build_ffn(cur, | |
| model.mm_1_w, model.mm_1_b, | |
| nullptr, nullptr, | |
| model.mm_2_w, model.mm_2_b, | |
| FFN_GELU_ERF, -1); | |
| cb(cur, "projected", -1); | |
| ggml_build_forward_expand(gf, cur); | |
| return gf; | |
| } | |