Text Generation
Transformers
Safetensors
PyTorch
gemma
Eval Results (legacy)
text-generation-inference
Instructions to use beomi/gemma-mling-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use beomi/gemma-mling-7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="beomi/gemma-mling-7b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("beomi/gemma-mling-7b") model = AutoModelForCausalLM.from_pretrained("beomi/gemma-mling-7b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use beomi/gemma-mling-7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "beomi/gemma-mling-7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "beomi/gemma-mling-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/beomi/gemma-mling-7b
- SGLang
How to use beomi/gemma-mling-7b 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 "beomi/gemma-mling-7b" \ --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": "beomi/gemma-mling-7b", "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 "beomi/gemma-mling-7b" \ --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": "beomi/gemma-mling-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use beomi/gemma-mling-7b with Docker Model Runner:
docker model run hf.co/beomi/gemma-mling-7b
Commit History
-
Adding Evaluation Results (#5)
Verified signature- Adding Evaluation Results (b246b1dfbbdb78f1018169d9e9051a074e7ebcb7) Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>72c4b34
-
Update README.md (#4)
Verified signature- Update README.md (222e7829e3cff50972622d02b77dac1d30fd042d) Co-authored-by: Taekyoon Ted Choi <Taekyoon@users.noreply.huggingface.co>3f442e2
-
Update README.md (#3)
Verified signature- Update README.md (28373e42b738a3df105f750ca10597d038993f37) Co-authored-by: Taekyoon Ted Choi <Taekyoon@users.noreply.huggingface.co>b663d6a
-
Update metric table (#2)
Verified signature- Update metric table (06e2ba25440965a755ba235bf4e318c6af7e0a1c) Co-authored-by: Taekyoon Ted Choi <Taekyoon@users.noreply.huggingface.co>382f21a -
Update Evaluation contents (#1)
Verified signature- Update Evaluation contents (076a14ad204356d766da58ce9aeefb3eadec5e0c) Co-authored-by: Taekyoon Ted Choi <Taekyoon@users.noreply.huggingface.co>17e9d8b -
Fix typo
Verified signaturee714105 -
Update README.md
Verified signatureb2d2c6b -
Update README.md
Verified signature10ffa9c -
Create README.md
Verified signature1dde6e0 -
Release model
565fd74 -
initial commit
Verified signature3249c55