Downloads · 30 days
7
3% of all-time downloads
madhavgohel/bert-token-onnx
bert-token-onnx is a machine learning model from madhavgohel. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
7
3% of all-time downloads
All-time downloads
251
Public
Parameters
109M
2.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.onnx436 MB · 50%
From the Hugging Face model README
IntextIQ is an intelligent token extraction and memory-augmented reasoning framework designed to enhance Large Language Models (LLMs) in long-context dialogue scenarios.
The system identifies and retains semantically important tokens from user inputs, stores them efficiently, and retrieves them through a Retrieval-Augmented Generation (RAG) pipeline for improved contextual understanding and factual consistency.
This approach enables LLMs to “remember what matters” — maintaining coherent, factual, and contextually aware conversations even across extended interactions.
Token-Level Semantic Extraction
Extracts meaningful tokens using a fine-tuned DistilBERT model trained on conversational data generated via Mistral-22B and GPT-OSS-20B.
Memory-Augmented RAG Integration
Seamlessly integrates token retrieval with the RAG framework to provide explicit contextual memory for LLMs.
Groq LLM Integration
Combines Groq’s high-speed inference with IntextIQ’s semantic memory to generate more factual and contextually relevant responses.
BIO Tagging for Token Labeling
Implements BIO (Begin–Inside–Outside) tagging for accurate semantic segmentation of text sequences.
Interactive Gradio Interface
User-friendly interface for inputting text, viewing extracted tokens, and visualizing RAG-based response generation.
The overall architecture consists of six major components:
| Component | Technology |
|---|---|
| Token Extraction | DistilBERT (fine-tuned) |
| Data Generation | Mistral-22B, GPT-OSS-20B |
| Embeddings | Safetensors |
| Integration | Retrieval-Augmented Generation (RAG) |
| Front-End | Gradio |
| LLM Engine | OLLAMA |
| Environment | Python 3.10+, PyTorch, Transformers, FAISS |
Two datasets were generated using synthetic conversational data representing average human dialogue:
| Dataset | Model | Rows | Generation Time | Quality |
|---|---|---|---|---|
| Dataset-1 | Mistral-22B | 5,000 | 24.5 hours | Moderate |
| Dataset-2 | GPT-OSS-20B | 10,000 | 50 hours | High (97% usable) |
The second dataset was used for fine-tuning due to improved data quality and contextual diversity.
| Metric | Groq (Baseline) | IntextIQ (Proposed) | Improvement |
|---|---|---|---|
| Context Relevance (%) | 72.3 | 91.4 | +26.4% |
| Factual Consistency (%) | 68.1 | 89.7 | +21.6% |
| Semantic Coherence (ROUGE-L) | 0.61 | 0.79 | +13% |
| Hallucination Rate (%) | 17.8 | 5.9 | ↓66% |
Key Results:
IntextIQ achieves substantial improvement in factual grounding and context continuity, confirming the efficacy of token-level retrieval in RAG-based dialogue systems.
These metrics validate that the semantic compression and retrieval approach improves LLM accuracy, coherence, and contextual reasoning in extended dialogues.