Repository navigation
Add ONNX sentence-transformer semantic codec for ultra-low latency 6G transmission - #30
Merged
Merged
Conversation
…nticCodec for ultra-low latency 6G semantic transmission Co-authored-by: j143 <53068787+j143@users.noreply.github.com>
…e embedding duplication Co-authored-by: j143 <53068787+j143@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement ONNX models for low latency encoding and decoding
Add ONNX sentence-transformer semantic codec for ultra-low latency 6G transmission
Feb 28, 2026
j143
marked this pull request as ready for review
March 1, 2026 13:45
j143
approved these changes
Mar 2, 2026
j143
left a comment
Owner
There was a problem hiding this comment.
- rename & add cargo feature flag to disable to simply swap with actual AI model
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.
Implements the ONNX-based AI semantic encode/decode pipeline requested for 6G semantic communications, with an experimental setup measuring compression ratio and semantic similarity preservation vs the existing term-frequency codec.
6g-ai:OnnxModel— simulated sentence-transformer (AiModel)tanh(W·x + b)libonnxruntimeneeded in CIcosine_similarity()utility exported for downstream useOnnxModelValidationimplementsValidate(dimension, L2 norm, determinism, self cosine-sim)Swap-in path for a real ONNX file (
all-MiniLM-L6-v2.onnxviaort::Session) documented indocs/6g-ai.md.6g-semantic:OnnxSemanticCodecOnnxModel→ i8 quantisation → 32 bytesTextSemanticCodec; 32 B fits in a single sub-THz OFDM REG (≤1 ms E2E latency target)OnnxSemanticValidation: 6 checks including semantic similarity preservationexp_008_onnx_semantic_codecMeasures both codecs across message sizes 64 B–4 kB:
Also identifies recommended AI model types for 6G semantic comms (sentence transformers > autoencoders > LLMs) in
experiments/exp_008_onnx_semantic_codec/README.md.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.