Conversation
Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add ltx.cpp tools for video inference with GGUF models
feat: ltx.cpp — portable C++17 LTX-Video 2.3 inference via GGML/GGUF
Mar 17, 2026
Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot
AI
changed the title
feat: ltx.cpp — portable C++17 LTX-Video 2.3 inference via GGML/GGUF
feat: PNG/JPG/BMP/TGA image input for I2V start/end frame conditioning
Mar 17, 2026
Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot
AI
changed the title
feat: PNG/JPG/BMP/TGA image input for I2V start/end frame conditioning
feat: start/end frame I2V conditioning + PNG/JPG input support + DEV.md
Mar 17, 2026
Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
…-match) Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot
AI
changed the title
feat: start/end frame I2V conditioning + PNG/JPG input support + DEV.md
Replace naive whitespace tokenizer with SentencePiece unigram (Viterbi + greedy longest-match)
Mar 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The T5 tokenizer was a whitespace-split + per-character fallback that mishandled subwords, multi-byte UTF-8, and any token not perfectly aligned with word boundaries. Replaces it with a correct SentencePiece unigram implementation and fixes two supporting gaps.
src/t5_encoder.hpp— tokenizer rewritepreprocess(): collapses whitespace, strips leading/trailing, prepends▁, replaces spaces with▁— matching SentencePiece normalizationviterbi(): Viterbi DP over byte positions maximizing sum of unigram log-probs; activated whentokenizer.ggml.scoresis present in the GGUFgreedy(): greedy longest-match scan; fallback when scores are absent — already far superior to the old approachutf8_char_len(): unk-fallback advances one full UTF-8 character (not one byte) to avoid corrupting subsequent lookupstok2idswitched fromstd::map→std::unordered_map(O(log n) → O(1) lookup)src/ltx-quantize.cpp— array KV preservationThe manual KV-copy
switchsilently dropped allGGUF_TYPE_ARRAYentries (tokenizer vocab, scores). Replaced withgguf_set_kv(out_ctx, src.gguf_ctx)— copies all KV pairs including arrays in one call.convert.py— scores round-tripconvert_t5 --tokenizernow writestokenizer.ggml.scoresviatok.sp_model.GetScore(i)usingwriter.add_token_scores(). GGUFs produced by the converter will carry scores, automatically enabling Viterbi mode in the C++ tokenizer.DEV.mdTokenizer and quantizer-metadata entries in the known-limitations table marked as resolved; §8 updated with Viterbi/greedy mode description and GGUF key table.
Original prompt
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.