Instructions to use Aobangaming/lightning-105m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Aobangaming/lightning-105m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Aobangaming/lightning-105m", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Aobangaming/lightning-105m", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Aobangaming/lightning-105m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Aobangaming/lightning-105m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Aobangaming/lightning-105m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Aobangaming/lightning-105m
- SGLang
How to use Aobangaming/lightning-105m 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 "Aobangaming/lightning-105m" \ --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": "Aobangaming/lightning-105m", "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 "Aobangaming/lightning-105m" \ --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": "Aobangaming/lightning-105m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Aobangaming/lightning-105m with Docker Model Runner:
docker model run hf.co/Aobangaming/lightning-105m
Commit History
8 days ago
-
Update README.md
Verified signature434073a
-
Update README.md
Verified signaturef8bfb47 -
Update README.md
Verified signature52e2722 -
Update modeling_lightning.py
Verified signaturece4d342 -
Update modeling_lightning.py
Verified signature4cd487b -
Update modeling_lightning.py
Verified signaturefab412d -
Upload lightning_tokenizer.json
Verified signaturea9568ea -
Update modeling_lightning.py
Verified signatured63ae81 -
Update README.md
Verified signaturea2124af -
Update README.md
Verified signature0cb29c1 -
Update README.md
Verified signatureb9f0cbe -
Update modeling_lightning.py
Verified signature48f941c -
Update modeling_lightning.py
Verified signaturebe83ef1 -
Update modeling_lightning.py
Verified signaturedbea522 -
Update README.md
Verified signature2fbf80a -
Update README.md
Verified signatured90f56a -
Create README.md
Verified signatured91b0ed -
Upload folder using huggingface_hub
Verified signatureb9593f5 -
initial commit
Verified signature68171bb