Instructions to use FreedomIntelligence/AceGPT-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FreedomIntelligence/AceGPT-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FreedomIntelligence/AceGPT-7B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("FreedomIntelligence/AceGPT-7B") model = AutoModelForCausalLM.from_pretrained("FreedomIntelligence/AceGPT-7B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use FreedomIntelligence/AceGPT-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FreedomIntelligence/AceGPT-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FreedomIntelligence/AceGPT-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/FreedomIntelligence/AceGPT-7B
- SGLang
How to use FreedomIntelligence/AceGPT-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 "FreedomIntelligence/AceGPT-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": "FreedomIntelligence/AceGPT-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 "FreedomIntelligence/AceGPT-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": "FreedomIntelligence/AceGPT-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use FreedomIntelligence/AceGPT-7B with Docker Model Runner:
docker model run hf.co/FreedomIntelligence/AceGPT-7B
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.58dc382
-
Upload 6 files
update modelc907e27 -
Delete pytorch_model.bin.index.json
51a28ee -
Delete pytorch_model-00003-of-00003.bin
fa5c662 -
Delete pytorch_model-00002-of-00003.bin
3ff711e -
Delete pytorch_model-00001-of-00003.bin
96ebabb -
Upload pytorch_model.bin
update model fileecac0f4
-
Upload LICENSE.txt
6b241c4
-
Upload LlamaForCausalLM
331c841 -
Upload tokenizer
b56f70e -
Upload tokenizer
8e56f45 -
Delete tokenizer_config.json
95d0c58 -
Delete config.json
30d3d79 -
Delete pytorch_model-00003-of-00003.bin
f2ef242 -
Delete pytorch_model-00002-of-00003.bin
0978776 -
Delete pytorch_model-00001-of-00003.bin
a69fd9d -
Delete generation_config.json
bd1c797 -
Delete tokenizer.model
5e09324 -
Delete tokenizer.json
b76dc57 -
Delete pytorch_model.bin.index.json
b499984 -
Delete special_tokens_map.json
b8fc258 -
Upload LlamaForCausalLM
d28f3a0 -
Upload tokenizer
1281977 -
Delete pytorch_model.bin
7d6948a -
Upload LlamaForCausalLM
589d7ff -
Upload tokenizer
c9d479f
-
Update README.md
edd80fe -
Update README.md
770a7e2 -
Update README.md
a0b3cef -
Update README.md
6d15fa6
-
Update README.md
d111416 -
Update README.md
07e9b24 -
Update README.md
10b98d3 -
Update README.md
2feec51 -
Update README.md
0281286
-
Update README.md
7c769e8 -
Create README.md
You can get more details at https://github.com/FreedomIntelligence/AceGPT/tree/main1e0cfac -
Delete README.md
3b6e1bd
-
del some files
jianqing666a07d6c5
-
ACEGPT-first-put
jianqing6665ddd685 -
initial commit
35b642c