Text Generation
Transformers
PyTorch
illuminator
fill-mask
causal-lm
transformer
ai-assistant
conversational
Instructions to use Anipal/iLLuMinator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Anipal/iLLuMinator with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Anipal/iLLuMinator") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelWithLMHead model = AutoModelWithLMHead.from_pretrained("Anipal/iLLuMinator", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Anipal/iLLuMinator with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Anipal/iLLuMinator" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Anipal/iLLuMinator", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Anipal/iLLuMinator
- SGLang
How to use Anipal/iLLuMinator with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Anipal/iLLuMinator" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Anipal/iLLuMinator", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Anipal/iLLuMinator" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Anipal/iLLuMinator", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Anipal/iLLuMinator with Docker Model Runner:
docker model run hf.co/Anipal/iLLuMinator
| license: mit | |
| base_model: illuminator-4b | |
| tags: | |
| - pytorch | |
| - causal-lm | |
| - text-generation | |
| - transformer | |
| - ai-assistant | |
| - conversational | |
| - illuminator | |
| library_name: transformers | |
| pipeline_tag: text-generation | |
| model_type: illuminator | |
| # Illuminator-4B: Advanced Conversational AI Model | |
| Illuminator-4B is a state-of-the-art transformer model designed for intelligent conversation and comprehensive knowledge assistance. With 4.7 billion parameters and advanced architecture optimizations, this model provides accurate and helpful responses across a wide range of topics. | |
| ## Model Description | |
| **Illuminator-4B** combines cutting-edge transformer architecture with comprehensive training data to deliver: | |
| - **Advanced Conversational AI**: Natural, context-aware conversations | |
| - **Comprehensive Knowledge**: Extensive coverage of science, technology, programming, and general knowledge | |
| - **Technical Expertise**: Deep understanding of programming, AI/ML concepts, and technical documentation | |
| - **Enhanced Accuracy**: Trained on high-quality, curated datasets with advanced optimization techniques | |
| ## Architecture | |
| - **Model Type**: Causal Language Model (Transformer-based) | |
| - **Parameters**: 4.7 billion | |
| - **Layers**: 32 transformer layers | |
| - **Hidden Dimensions**: 2,560 | |
| - **Attention Heads**: 32 | |
| - **Context Length**: 4,096 tokens | |
| - **Vocabulary Size**: 50,257 tokens | |
| ## Key Features | |
| ### 🧠 **Advanced Architecture** | |
| - Pre-normalization for training stability | |
| - Enhanced attention mechanisms | |
| - Optimized MLP blocks with improved activations | |
| - Label smoothing for better generalization | |
| ### 📚 **Comprehensive Training Data** | |
| - Scientific and technical documentation | |
| - Programming tutorials and code examples | |
| - Conversational Q&A pairs | |
| - Encyclopedic knowledge across domains | |
| - Multi-domain expertise coverage | |
| ### 🚀 **Performance Optimizations** | |
| - Gradient checkpointing for memory efficiency | |
| - FP16 training support | |
| - Efficient tokenization with BPE | |
| - Advanced learning rate scheduling | |
| ## Usage | |
| ### Quick Start | |
| ```python | |
| from transformers import AutoTokenizer, AutoModelForCausalLM | |
| import torch | |
| # Load model and tokenizer | |
| tokenizer = AutoTokenizer.from_pretrained("your-username/illuminator-4b") | |
| model = AutoModelForCausalLM.from_pretrained("your-username/illuminator-4b") | |
| # Generate text | |
| prompt = "Explain quantum computing in simple terms:" | |
| inputs = tokenizer(prompt, return_tensors="pt") | |
| with torch.no_grad(): | |
| outputs = model.generate( | |
| inputs.input_ids, | |
| max_length=200, | |
| temperature=0.8, | |
| do_sample=True, | |
| top_p=0.9, | |
| pad_token_id=tokenizer.pad_token_id | |
| ) | |
| response = tokenizer.decode(outputs[0], skip_special_tokens=True) | |
| print(response) | |
| ``` | |
| ### Advanced Usage | |
| ```python | |
| # For conversational use | |
| def generate_response(prompt, max_length=512): | |
| inputs = tokenizer.encode(prompt, return_tensors="pt") | |
| with torch.no_grad(): | |
| outputs = model.generate( | |
| inputs, | |
| max_length=max_length, | |
| temperature=0.7, | |
| do_sample=True, | |
| top_p=0.9, | |
| repetition_penalty=1.1, | |
| pad_token_id=tokenizer.pad_token_id, | |
| eos_token_id=tokenizer.eos_token_id | |
| ) | |
| response = tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True) | |
| return response.strip() | |
| # Example usage | |
| response = generate_response("What are the benefits of renewable energy?") | |
| print(response) | |
| ``` | |
| ## Training Details | |
| ### Training Data | |
| The model was trained on a comprehensive dataset including: | |
| - **Technical Documentation**: Programming languages, frameworks, APIs | |
| - **Scientific Literature**: Research papers, educational materials | |
| - **Conversational Data**: Q&A pairs, dialogue examples | |
| - **General Knowledge**: Encyclopedia entries, factual content | |
| ### Training Configuration | |
| - **Optimizer**: AdamW with weight decay (0.01) | |
| - **Learning Rate**: 1e-4 with linear warmup | |
| - **Batch Size**: 32 (with gradient accumulation) | |
| - **Epochs**: 5 | |
| - **Hardware**: GPU-optimized training with FP16 precision | |
| - **Regularization**: Label smoothing (0.1), dropout (0.1) | |
| ### Performance Metrics | |
| - **Training Loss**: Consistently decreasing convergence | |
| - **Perplexity**: Competitive scores on evaluation datasets | |
| - **Memory Efficiency**: Optimized for deployment scenarios | |
| ## Model Performance | |
| ### Benchmarks | |
| - **Knowledge Q&A**: High accuracy on factual questions | |
| - **Code Generation**: Competent programming assistance | |
| - **Conversational**: Natural dialogue capabilities | |
| - **Technical Explanations**: Clear, accurate explanations | |
| ### Evaluation Results | |
| The model demonstrates strong performance across multiple evaluation criteria: | |
| - Factual accuracy and knowledge retention | |
| - Coherent and contextually appropriate responses | |
| - Technical competency in programming and science | |
| - Safe and helpful assistance | |
| ## Limitations | |
| - **Knowledge Cutoff**: Training data has a knowledge cutoff date | |
| - **Computational Requirements**: Requires significant computational resources | |
| - **Potential Biases**: May reflect biases present in training data | |
| - **Not Perfect**: May occasionally generate incorrect or incomplete information | |
| ## Ethical Considerations | |
| This model is designed to be helpful, harmless, and honest. However, users should: | |
| - Verify important information from authoritative sources | |
| - Use the model responsibly and ethically | |
| - Be aware of potential limitations and biases | |
| - Provide appropriate supervision in critical applications | |
| ## Technical Specifications | |
| ### System Requirements | |
| - **Minimum RAM**: 16GB (for inference) | |
| - **Recommended RAM**: 32GB+ (for fine-tuning) | |
| - **GPU**: CUDA-compatible GPU with 8GB+ VRAM | |
| - **Storage**: ~20GB for model files | |
| ### Supported Frameworks | |
| - **PyTorch**: Full compatibility | |
| - **Transformers**: Native integration | |
| - **ONNX**: Export supported | |
| - **TensorRT**: Optimization available | |
| ## Citation | |
| ```bibtex | |
| @misc{illuminator4b2024, | |
| title={Illuminator-4B: Advanced Conversational AI Model}, | |
| author={Illuminator Team}, | |
| year={2024}, | |
| publisher={Hugging Face}, | |
| journal={Hugging Face Model Hub}, | |
| howpublished={\url{https://huggingface.co/your-username/illuminator-4b}} | |
| } | |
| ``` | |
| ## License | |
| This model is released under the MIT License. See LICENSE file for details. | |
| ## Contact | |
| For questions, issues, or contributions, please visit our [repository](https://github.com/your-username/illuminator) or contact the development team. | |
| --- | |
| **Note**: This is an AI model and should be used responsibly. Always verify critical information and use appropriate judgment when deploying in production systems. | |