Instructions to use Undi95/MM-ReMM-L2-20B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Undi95/MM-ReMM-L2-20B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Undi95/MM-ReMM-L2-20B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Undi95/MM-ReMM-L2-20B") model = AutoModelForCausalLM.from_pretrained("Undi95/MM-ReMM-L2-20B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Undi95/MM-ReMM-L2-20B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Undi95/MM-ReMM-L2-20B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Undi95/MM-ReMM-L2-20B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Undi95/MM-ReMM-L2-20B
- SGLang
How to use Undi95/MM-ReMM-L2-20B 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 "Undi95/MM-ReMM-L2-20B" \ --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": "Undi95/MM-ReMM-L2-20B", "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 "Undi95/MM-ReMM-L2-20B" \ --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": "Undi95/MM-ReMM-L2-20B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Undi95/MM-ReMM-L2-20B with Docker Model Runner:
docker model run hf.co/Undi95/MM-ReMM-L2-20B
Commit History
-
Adding Evaluation Results (#1)
- Adding Evaluation Results (c639e601ca2ca91a8c89b792f6009c90ca739ce1) Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>d1f8282
-
Rename pytorch_model.safetensors.index.json to model.safetensors.index.json
3786980 -
Rename pytorch_model-00005-of-00005.safetensors to model-00005-of-00005.safetensors
06cb39e -
Rename pytorch_model-00004-of-00005.safetensors to model-00004-of-00005.safetensors
a2bfe64 -
Rename pytorch_model-00003-of-00005.safetensors to model-00003-of-00005.safetensors
561952a -
Rename pytorch_model-00002-of-00005.safetensors to model-00002-of-00005.safetensors
fc5ae92 -
Rename pytorch_model-00001-of-00005.safetensors to model-00001-of-00005.safetensors
6188bc8 -
Rename pytorch_model-00005-of-00005.bin to pytorch_model-00005-of-00005.safetensors
29efb3e -
Rename pytorch_model-00004-of-00005.bin to pytorch_model-00004-of-00005.safetensors
581c786 -
Rename pytorch_model-00003-of-00005.bin to pytorch_model-00003-of-00005.safetensors
5048321 -
Rename pytorch_model-00002-of-00005.bin to pytorch_model-00002-of-00005.safetensors
702603d -
Rename pytorch_model-00001-of-00005.bin to pytorch_model-00001-of-00005.safetensors
b4a850b -
Rename pytorch_model.bin.index.json to pytorch_model.safetensors.index.json
45aefbb -
Update pytorch_model.bin.index.json
1019fbc
-
Upload folder using huggingface_hub
5fc648b -
Update README.md
c684a12 -
Create README.md
64bffaf -
initial commit
350afbb