<?xml version="1.0" encoding="UTF-8"?><oembed><type>video</type><version>1.0</version><html>&lt;iframe src=&quot;https://www.loom.com/embed/51b53e0a7200458a97923b21a0cc2d69&quot; frameborder=&quot;0&quot; width=&quot;1670&quot; height=&quot;1252&quot; webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;/iframe&gt;</html><height>1252</height><width>1670</width><provider_name>Loom</provider_name><provider_url>https://www.loom.com</provider_url><thumbnail_height>1252</thumbnail_height><thumbnail_width>1670</thumbnail_width><thumbnail_url>https://cdn.loom.com/sessions/thumbnails/51b53e0a7200458a97923b21a0cc2d69-1d6fc43292fc06ab.gif</thumbnail_url><duration>1676.251</duration><title>namenotfound.ai - Complete Setup Guide: ImproveLLMStructure - Local Text Formatting with Small Language Models - 9 June 2025</title><description># How to Use Small Local Language Models for Text Formatting &amp; Restructuring

https://github.com/namenotfound-ai/ImproveLLMStructure
https://github.com/namenotfound-ai/a_agent

Learn how to set up and use the **Improve LLM Structure** project from NaveNotFound - a powerful local solution that leverages small, specialized language models to transform text between different formats (plain text → JavaScript, JSON, Python, HTML, etc.).

## What You&apos;ll Learn:
- **Two-step approach**: Separate reasoning from formatting using smaller, specialized models instead of relying on large cloud-based LLMs
- **Local setup**: Run everything on your own hardware without cloud dependencies
- **Complete installation**: Step-by-step environment setup using the A-Agent project requirements
- **Model management**: Download and configure local models (Phi 8-bit) from HuggingFace
- **API integration**: Set up local endpoints for model communication
- **Real examples**: See live demonstrations of text-to-JSON, HTML table generation, and Python function creation

## Key Benefits:
✅ **100% Local** - No API costs or cloud dependencies  
✅ **Scalable** - Use smaller models with iterative validation for reliable outputs  
✅ **Confidence-based** - System validates responses until 95% confidence is reached  
✅ **Format flexibility** - Convert between multiple output formats seamlessly  

## Technical Setup Covered:
- Conda environment configuration
- Git LFS for large model files
- Local API endpoints (ports 5015 &amp; 5025)
- Debugging with VS Code/Cursor
- Model validation and error correction workflows

**Perfect for developers** who want to reduce reliance on cloud LLM services while maintaining high-quality text processing capabilities using local hardware.

## Projects Referenced:
- [Improve LLM Structure](link-to-repo)
- [A-Agent Project](link-to-repo)

*Resources needed: ~15GB storage for models, sufficient RAM (demo uses 36GB peak)*</description></oembed>