Text Generation
Transformers
Safetensors
Japanese
llama
pretrained
experimental
text-generation-inference
Instructions to use hmwri/mlab-LLM-300M-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hmwri/mlab-LLM-300M-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="hmwri/mlab-LLM-300M-Base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("hmwri/mlab-LLM-300M-Base") model = AutoModelForCausalLM.from_pretrained("hmwri/mlab-LLM-300M-Base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use hmwri/mlab-LLM-300M-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hmwri/mlab-LLM-300M-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hmwri/mlab-LLM-300M-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/hmwri/mlab-LLM-300M-Base
- SGLang
How to use hmwri/mlab-LLM-300M-Base 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 "hmwri/mlab-LLM-300M-Base" \ --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": "hmwri/mlab-LLM-300M-Base", "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 "hmwri/mlab-LLM-300M-Base" \ --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": "hmwri/mlab-LLM-300M-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use hmwri/mlab-LLM-300M-Base with Docker Model Runner:
docker model run hf.co/hmwri/mlab-LLM-300M-Base
Download tokenizer.model from hmwri/mlab-LLM-300M-Base: direct link, hf CLI and curl.
- Browser
- Download file 852 kB
-
https://huggingface.co/hmwri/mlab-LLM-300M-Base/resolve/main/tokenizer.model
- Command line
-
hf download hf://hmwri/mlab-LLM-300M-Base/tokenizer.model
-
curl -L -o tokenizer.model https://huggingface.co/hmwri/mlab-LLM-300M-Base/resolve/main/tokenizer.model
852 kB
- Xet hash:
- 21c68742fa200ce6f3c1542755988cca9292715650a17dec54c0774473f16171
- Size of remote file:
- 852 kB
- SHA256:
- bc077c9c043d70dce06211dcc84cc090176785ed9ee135d6ba908739267772e7
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.