Instructions to use maywell/l3-211m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use maywell/l3-211m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="maywell/l3-211m")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("maywell/l3-211m") model = AutoModelForCausalLM.from_pretrained("maywell/l3-211m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use maywell/l3-211m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "maywell/l3-211m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "maywell/l3-211m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/maywell/l3-211m
- SGLang
How to use maywell/l3-211m 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 "maywell/l3-211m" \ --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": "maywell/l3-211m", "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 "maywell/l3-211m" \ --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": "maywell/l3-211m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use maywell/l3-211m with Docker Model Runner:
docker model run hf.co/maywell/l3-211m
Commit History
-
Update config.json
cc562b8 -
Update README.md
5eb77bd -
Update config.json
9b69a86 -
Delete trainer_state.json
255e42e -
Delete training_args.bin
19ba4fc -
Delete scheduler.pt
7a73c60 -
Delete rng_state_7.pth
332349a -
Delete rng_state_6.pth
7aeb01a -
Delete rng_state_5.pth
a0d5e66 -
Delete rng_state_4.pth
6f8d6fd -
Delete rng_state_3.pth
0daecf3 -
Delete rng_state_2.pth
b655a87 -
Delete rng_state_1.pth
eba034c -
Delete rng_state_0.pth
32b26bf -
Delete optimizer.pt
7514971 -
Delete .ipynb_checkpoints
0cbda7f -
1 epoch.
2b79441 -
Update README.md
Verified signatureeeb1f46 -
Update README.md
Verified signatureb981f7a -
0.25 epoch checkpoint.
Verified signature6507c61 -
initial commit
Verified signature7761fb4