Instructions to use drlee1/SchoolLM-6M-A3M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use drlee1/SchoolLM-6M-A3M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="drlee1/SchoolLM-6M-A3M", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("drlee1/SchoolLM-6M-A3M", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use drlee1/SchoolLM-6M-A3M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "drlee1/SchoolLM-6M-A3M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "drlee1/SchoolLM-6M-A3M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/drlee1/SchoolLM-6M-A3M
- SGLang
How to use drlee1/SchoolLM-6M-A3M 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 "drlee1/SchoolLM-6M-A3M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "drlee1/SchoolLM-6M-A3M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "drlee1/SchoolLM-6M-A3M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "drlee1/SchoolLM-6M-A3M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use drlee1/SchoolLM-6M-A3M with Docker Model Runner:
docker model run hf.co/drlee1/SchoolLM-6M-A3M
This repository contains a personal experimental model released mainly for research, learning, and proof-of-concept purposes. It is not intended to be a production-ready or fully validated model release. As a very small MoE language model, its output quality, robustness, and practical usefulness may be limited.
Overview
SchoolLM-6M-A3M is a tiny Korean Mixture-of-Experts language model shared primarily as an experimental public artifact. This repository is intended for implementation-level exploration, architecture experimentation, and educational inspection rather than reliable downstream deployment.
Highlights
architectures:SchoolMoEForCausalLM- tiny sparse MoE with fish-school expert routing
- total params: about 5.84M
- active params per token: about 3.00M
- attention: GQA (8 query heads / 2 KV heads)
- routed experts: 8
- shared experts: 2
- top-k routed experts per token: 2
- YaRN scaling from 128 to 512
Load
from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer
config = AutoConfig.from_pretrained("drlee1/SchoolLM-6M-A3M", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("drlee1/SchoolLM-6M-A3M", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("drlee1/SchoolLM-6M-A3M", trust_remote_code=True, use_fast=False)
Intended Use
- Personal experimentation
- Educational inspection of a tiny MoE language model
- Proof-of-concept validation
- Research on compact language model architecture
Limitations
- Not benchmarked thoroughly
- Not production-ready
- Output quality may be inconsistent
- May underperform significantly on real-world tasks
- Not fully validated for safety, robustness, or broad generalization
- Downloads last month
- 133