Text Generation
Transformers
PyTorch
Safetensors
English
i3
conversational
efficient
i3-architecture
Run this model with HF Jobs
Run i3-lab/i3-22m on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/i3-lab/i3-22m. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/i3-lab/i3-22m on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/i3-lab/i3-22m. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/i3-lab/i3-22m. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use i3-lab/i3-22m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use i3-lab/i3-22m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="i3-lab/i3-22m")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("i3-lab/i3-22m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use i3-lab/i3-22m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "i3-lab/i3-22m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "i3-lab/i3-22m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/i3-lab/i3-22m
- SGLang
How to use i3-lab/i3-22m 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 "i3-lab/i3-22m" \ --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": "i3-lab/i3-22m", "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 "i3-lab/i3-22m" \ --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": "i3-lab/i3-22m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use i3-lab/i3-22m with Docker Model Runner:
docker model run hf.co/i3-lab/i3-22m
Upload 6 files
Browse filesFiles changed (6)
- README.md+45
- config.jsonAdded+17
- pytorch_model.binAdded+3
- special_tokens_map.jsonAdded+1
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+8
123456789101112131415161718192021222324252627282930313233343536373839404142434445---language: enlicense: mittags:- conversational- efficient- proprietary-architecturedatasets:- starhopp3r/TinyChat---# i3 Model - Memory-Optimized Efficient Conversational Language Model## Model DescriptionThe **i3 Model** is a memory-optimized language model designed for conversational understanding. This version uses streaming tokenization to minimize RAM usage during training.**PROPRIETARY ARCHITECTURE**: The internal architecture and training methodologies are proprietary and confidential.## Model Statistics- **Vocabulary Size**: 4,466 (variable-length chunks)- **Hidden Dimension**: 512- **Number of Layers**: 24- **Max Sequence Length**: 256- **Total Parameters**: 22,640,626- **Tokenization**: Memory-efficient variable-length chunking (2-3 characters)### Key Features1. **Memory-Optimized**: Streaming tokenization reduces RAM usage significantly2. **Proprietary Hybrid Architecture**: Advanced sequence processing with linear complexity3. **Variable-Length Tokenization**: Smart chunking strategy for better compression4. **Conversational Focus**: Specialized for dialogue and emotional understanding## Training Details- **Dataset**: [TinyChat](https://huggingface.co/datasets/starhopp3r/TinyChat)- **Training Objective**: Next-token prediction with proprietary optimization- **Framework**: PyTorch- **Memory Optimization**: Streaming dataset processing## License**PROPRIETARY LICENSE** - All rights reserved.
1234567891011121314151617{ "architectures": [ "i3Model" ], "model_type": "i3", "vocab_size": 4466, "d_model": 512, "n_layers": 24, "n_heads": 16, "max_seq_len": 256, "rank": 128, "d_state": 64, "tokenizer_type": "chunk", "chunk_strategy": "variable_2_3", "torch_dtype": "float32", "transformers_version": "4.36.0"}123version https://git-lfs.github.com/spec/v1oid sha256:1ccf2db41965042284ce1f7024ab4e84b2194a3efdc6152f859f90234a26ef22size 908184631{}12345678{ "tokenizer_class": "ChunkTokenizer", "model_max_length": 256, "vocab_size": 4466, "chunk_strategy": "variable_2_3", "special_tokens": {}, "clean_up_tokenization_spaces": false}README.md+45
config.jsonAdded+17
pytorch_model.binAdded+3
special_tokens_map.jsonAdded+1
tokenizer.jsonAdded
tokenizer_config.jsonAdded+8