Text Generation
Transformers
Safetensors
English
cloverlm
causal-lm
quartet-ii
nvfp4
low-precision-training
pretrained
custom_code
Instructions to use daslab-testing/CloverLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use daslab-testing/CloverLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="daslab-testing/CloverLM", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("daslab-testing/CloverLM", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use daslab-testing/CloverLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "daslab-testing/CloverLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "daslab-testing/CloverLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/daslab-testing/CloverLM
- SGLang
How to use daslab-testing/CloverLM 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 "daslab-testing/CloverLM" \ --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": "daslab-testing/CloverLM", "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 "daslab-testing/CloverLM" \ --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": "daslab-testing/CloverLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use daslab-testing/CloverLM with Docker Model Runner:
docker model run hf.co/daslab-testing/CloverLM
Commit History
-
Update README.md
Verified signature22f6344 -
Delete vllm_plugin
Verified signatureDelete the plugin as it was outdated.03a3d6d
-
Upload folder using huggingface_hub
Verified signaturee5f90f7 -
Upload folder using huggingface_hub
Verified signature99063a5
-
Upload folder using huggingface_hub
Verified signature12303b2
-
Update vllm_plugin/SERVING.md
Verified signaturef359aa5 -
Update vllm_plugin/quartet2_quant.py
Verified signature1a13422 -
Update vllm_plugin/quartet2_quant.py
Verified signatured0aacb0 -
Update vllm_plugin/cloverlm_vllm.py
Verified signature6f7dfbe -
Update modeling_cloverlm.py
Verified signatured11440f
-
Update vllm_plugin/SERVING.md
Verified signaturefb4181d -
Update modeling_cloverlm.py
Verified signature1cbe20e -
Update modeling_cloverlm.py
Verified signaturef2ef64c -
Update modeling_cloverlm.py
Verified signature4781880 -
Upload folder using huggingface_hub
Verified signature05b36fb -
Upload README.md with huggingface_hub
Verified signaturea372444 -
Upload folder using huggingface_hub
Verified signature317675d -
Update README.md
Verified signatureafd6f57 -
Delete lm_eval/test_eval2.log
Verified signatureac62373 -
Delete lm_eval/test_eval.log
Verified signature5de1d42 -
Upload folder using huggingface_hub
Verified signature954e44f -
Update README.md
Verified signature96754f4 -
Update README.md
Verified signature85c19a9 -
Upload folder using huggingface_hub
Verified signature5e46bcb -
Upload modeling_cloverlm.py with huggingface_hub
Verified signature63c64c0 -
Update config.json
Verified signature370157d -
Update README.md
Verified signature43e4bf9
-
Update README.md
Verified signature389961d -
Upload folder using huggingface_hub
Verified signature812abc2 -
Upload folder using huggingface_hub
Verified signaturef849730 -
Upload README.md with huggingface_hub
Verified signature9d9ad39 -
Upload folder using huggingface_hub
Verified signatureefc655d -
Upload folder using huggingface_hub
Verified signature45683de -
Upload folder using huggingface_hub
Verified signaturea29dc33 -
Upload folder using huggingface_hub
Verified signatureb0fd683 -
initial commit
Verified signature4d9bee1