A comprehensive analysis of Local Large Language Models (LLMs) for home automation applications, focusing on performance tradeoffs across different model sizes and deployment strategies.
- Shreyas Rajesh (shreyasrajesh38@g.ucla.edu)
- Chenda Duan (chenda@ucla.edu)
We use poetry to manage the package To install, simply run following code
git clone https://github.com/shreyasrajesh0308/llm-home-automation-analysis.git
cd llm-home-automation-analysis
conda create -n llmhome python==3.9 # any version greater is okay
conda activate llmhome
pip install poetry
poetry config virtualenvs.create false
conda install --channel=numba llvmlite
poetry installTo analyze and evaluate the performance of Large Language Models (LLMs) in home automation applications, focusing on the relationships between instruction complexity, model size, system resources, and execution performance.
Understanding Tradeoffs between model size, performance, query complexity and cost:
- How do different classes of LLMs perform in home automation contexts?
- What are the key tradeoffs between model sizes and deployment options?
- How does the complexity of instruction decide which scale of model to be used?
- Possibly exploration into Routing calls based on the level of complexity of the instruction. (Explorations along the lines of https://lmsys.org/blog/2024-07-01-routellm/)
- Size Range: 1-3B parameters
- Deployment: Direct on embedded device (Jetson Nano)
- Examples: LLama3.2 - 1B and 3B Variants, Heavily Quantized 7B models
- Size Range: 7-70B parameters
- Deployment: Local production server (A6000, A100, H100)
- Examples: Llama-3.1 7B, 70B, Mistral etc. Other MoE models as well
- Size Range: 70B+ parameters
- Deployment: Cloud API calls
- Examples: GPT4, Claude, Grok
- Simple commands (single action)
- Composite commands (multiple actions)
- Complex contextual commands (Inferring command based on user want)
- Error rate analysis
- Response time measurement
- Latency variance
- Network latency and reliability (for API calls)
- Instruction complexity supported with high accuracy
- Degradation patterns with increasing complexity
- Reasoning capabilities based on user inputs
- Hardware/Deployment costs (embedded/server)
- API costs (per-query pricing)
- Security Implications especially for cloud based closed source models
- Performance vs. Cost curves for each model category
- Accuracy vs. Instruction complexity relationships
- Latency analysis for the analyzed model classes
- Model selection guidelines based on use case
- Deployment architecture recommendations
- Cost-benefit analysis framework
- Possible study on using a mix of all kinds of models guided by a router
- Jetson-Nano/other type of embedding platform
- Access to open source home automation systems
- Home automation test-bed (lights, smart plugs etc.)
- Server Grade GPUs to host mid-size models
- API access to SOTA models
- Analyze the API of home automation system and use Large closed models to generate a training/evaluation set (Command and Instruction pairs)
- Zero-shot evaluating the small and mid-sized language models
- If performance is bad (we expected this to happen with smaller models), considering finetuning
- Evaluating the accuracy of different models
- Deploy the smaller model/mid sized model and test latency/costs
- Ablation studies (Instruction complexity handling analysis, Security Assessment)
This project is licensed under the MIT License - see the LICENSE file for details.