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 ·
9c90342
1
Parent(s): 0f491bb
Update README.md
Browse files
README.md
CHANGED
|
@@ -4,27 +4,6 @@ language:
|
|
| 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:
|
|
@@ -32,10 +11,6 @@ co2_eq_emissions:
|
|
| 32 |
training_type: fine-tuning
|
| 33 |
library_name: transformers
|
| 34 |
---
|
| 35 |
-
**Sorry, it's no longer available on Hugging Face. Please reach out to those who have already downloaded it. If you have a copy, please refrain from re-uploading it to Hugging Face.**
|
| 36 |
-
|
| 37 |
-
**Due to repeated conflicts with HF and what we perceive as their repeated misuse of the "Contributor Covenant Code of Conduct," we have lost confidence in the platform and decided to temporarily suspend all new download access requests. It appears to us that HF's original intention has been abandoned in pursuit of commercialization, and they no longer prioritize the well-being of the community.**
|
| 38 |
-
|
| 39 |
# miniG
|
| 40 |
|
| 41 |
[Text-Only Weight](https://huggingface.co/CausalLM/miniG/tree/text-only)
|
|
|
|
| 4 |
- zh
|
| 5 |
- ja
|
| 6 |
- de
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
license: agpl-3.0
|
| 8 |
pipeline_tag: text-generation
|
| 9 |
co2_eq_emissions:
|
|
|
|
| 11 |
training_type: fine-tuning
|
| 12 |
library_name: transformers
|
| 13 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
# miniG
|
| 15 |
|
| 16 |
[Text-Only Weight](https://huggingface.co/CausalLM/miniG/tree/text-only)
|