Text Generation
Transformers
Safetensors
English
gravity_moe
medical
clinical
mixture-of-experts
conversational
sft
custom_code
Instructions to use learning-unit/L1-16B-A3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use learning-unit/L1-16B-A3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="learning-unit/L1-16B-A3B", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("learning-unit/L1-16B-A3B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use learning-unit/L1-16B-A3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "learning-unit/L1-16B-A3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "learning-unit/L1-16B-A3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/learning-unit/L1-16B-A3B
- SGLang
How to use learning-unit/L1-16B-A3B 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 "learning-unit/L1-16B-A3B" \ --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": "learning-unit/L1-16B-A3B", "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 "learning-unit/L1-16B-A3B" \ --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": "learning-unit/L1-16B-A3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use learning-unit/L1-16B-A3B with Docker Model Runner:
docker model run hf.co/learning-unit/L1-16B-A3B
Commit History
-
add: funding source
Verified signatured9d6f7a -
Upload modeling_gravity_moe.py with huggingface_hub
Verified signature4ba7bc8 -
Upload configuration_gravity_moe.py with huggingface_hub
Verified signature97cd573
-
Upload README.md with huggingface_hub
Verified signatureab02c4c -
Upload README.md with huggingface_hub
Verified signature39bee82 -
Upload README.md with huggingface_hub
Verified signature852c491 -
Upload README.md with huggingface_hub
Verified signatureea4025f -
Upload README.md with huggingface_hub
Verified signature4903aca -
Upload README.md with huggingface_hub
Verified signatureddaaa0f
-
Upload README.md with huggingface_hub
Verified signature5b5895f -
Upload README.md with huggingface_hub
Verified signature0efabda -
Upload chat_template.jinja with huggingface_hub
Verified signaturec6e259a -
Upload generation_config.json with huggingface_hub
Verified signature9db48e2 -
Upload special_tokens_map.json with huggingface_hub
Verified signature7988264 -
Upload tokenizer_config.json with huggingface_hub
Verified signature6421ab9 -
Upload README.md with huggingface_hub
Verified signature2e9083d -
Upload README.md with huggingface_hub
Verified signaturec44b607 -
Upload README.md with huggingface_hub
Verified signature3b553d7 -
Upload LICENSE with huggingface_hub
Verified signatureb47a060 -
Upload consortium.png with huggingface_hub
Verified signature9592d0c -
Upload banner.png with huggingface_hub
Verified signature3f2b01f -
Delete README.md with huggingface_hub
Verified signature2d5fea2 -
Upload tokenizer.json with huggingface_hub
Verified signature3e93565 -
Upload model.safetensors with huggingface_hub
Verified signatureaed586e -
Upload modeling_gravity_moe.py with huggingface_hub
Verified signature96a436c -
Upload configuration_gravity_moe.py with huggingface_hub
Verified signature8e26e8a -
Upload config.json with huggingface_hub
Verified signature672bd75 -
Upload README.md with huggingface_hub
Verified signatureea1cb07 -
initial commit
Verified signaturedbb1dac