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 ·
c0da908
1
Parent(s): d141e59
Update README.md
Browse files
README.md
CHANGED
|
@@ -4,6 +4,27 @@ language:
|
|
| 4 |
- zh
|
| 5 |
- ja
|
| 6 |
- de
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
license: agpl-3.0
|
| 8 |
pipeline_tag: text-generation
|
| 9 |
co2_eq_emissions:
|
|
|
|
| 4 |
- zh
|
| 5 |
- ja
|
| 6 |
- de
|
| 7 |
+
model-index:
|
| 8 |
+
- name: miniG
|
| 9 |
+
results:
|
| 10 |
+
- task:
|
| 11 |
+
type: text-generation
|
| 12 |
+
metrics:
|
| 13 |
+
- name: MMLU
|
| 14 |
+
type: MMLU
|
| 15 |
+
value: 85.45
|
| 16 |
+
- name: IFEval
|
| 17 |
+
type: IFEval
|
| 18 |
+
value: 74.22
|
| 19 |
+
- name: GSM8K (5-shot)
|
| 20 |
+
type: GSM8K (5-shot)
|
| 21 |
+
value: 75.89
|
| 22 |
+
- name: HumanEval
|
| 23 |
+
type: HumanEval
|
| 24 |
+
value: 79.88
|
| 25 |
+
- name: GPQA
|
| 26 |
+
type: GPQA
|
| 27 |
+
value: 37.37
|
| 28 |
license: agpl-3.0
|
| 29 |
pipeline_tag: text-generation
|
| 30 |
co2_eq_emissions:
|