Instructions to use CausalLM/miniG with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CausalLM/miniG with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CausalLM/miniG", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("CausalLM/miniG", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CausalLM/miniG with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CausalLM/miniG" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CausalLM/miniG", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CausalLM/miniG
- SGLang
How to use CausalLM/miniG 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 "CausalLM/miniG" \ --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": "CausalLM/miniG", "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 "CausalLM/miniG" \ --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": "CausalLM/miniG", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use CausalLM/miniG with Docker Model Runner:
docker model run hf.co/CausalLM/miniG
Commit History
-
Update README.md
5942bcc
-
Update README.md
9c90342
-
Update README.md
0f491bb
-
Add proper library type (#10)
- Add proper library type (b1d6522c73670d9fb0b658350f3528db358f5577) Co-authored-by: Omar Sanseviero <osanseviero@users.noreply.huggingface.co>7a2891b
-
Update README.md
80ad307
-
Update README.md
1d742be -
Update README.md
632d9d8 -
Update README.md
5babf35 -
Update README.md
b16d090 -
Update README.md
2c59ae7 -
Update README.md
263850f -
Update README.md
1eaf36d
-
Update README.md
675db90 -
Update README.md
ee71ee8 -
Update README.md
d6cc653 -
Update README.md
064c265 -
Update README.md
050089e -
Update README.md
0b93b1e -
Update README.md
9781ff6 -
Upload config.json
bdd5c9c -
Upload 7 files
2da4d79 -
Upload 8 files
93f2b0f -
Delete model.safetensors.index.json
fcb2ea0 -
Update README.md
41fa123
-
Update README.md
2d45367 -
Update README.md
6574b66 -
Update README.md
468a755 -
Update README.md
c0da908 -
Update README.md
d141e59 -
Update README.md
6ad2f97 -
Update README.md
a2d26f2 -
Update README.md
29d4128 -
Update README.md
bad0b37 -
Update README.md
9099bd2 -
Update README.md
3774bf0 -
Update README.md
7a2d7f7 -
Update README.md
c1c8335 -
Update README.md
1046796 -
Create README.md
fc20a02 -
Upload folder using huggingface_hub
b6e61a1 -
initial commit
463c7d3