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