Instructions to use FreedomIntelligence/Apollo-72B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FreedomIntelligence/Apollo-72B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FreedomIntelligence/Apollo-72B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("FreedomIntelligence/Apollo-72B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use FreedomIntelligence/Apollo-72B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FreedomIntelligence/Apollo-72B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FreedomIntelligence/Apollo-72B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/FreedomIntelligence/Apollo-72B
- SGLang
How to use FreedomIntelligence/Apollo-72B 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/Apollo-72B" \ --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/Apollo-72B", "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/Apollo-72B" \ --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/Apollo-72B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use FreedomIntelligence/Apollo-72B with Docker Model Runner:
docker model run hf.co/FreedomIntelligence/Apollo-72B
Commit History
-
Update README.md
Verified signaturedd07d4f
-
Update README.md
Verified signature849cbf7 -
Upload result.png
Verified signature63fcc7b -
Update README.md
Verified signature2d709f5 -
Delete Apollo-72B
Verified signatureb0529b8
-
Upload ./model-00029-of-00031.safetensors with huggingface_hub
Verified signature90ed5a7 -
Upload ./model-00003-of-00031.safetensors with huggingface_hub
Verified signature9e679ba -
Upload ./generation_config.json with huggingface_hub
Verified signature76ecbf7 -
Upload ./model-00026-of-00031.safetensors with huggingface_hub
Verified signature141296d -
Upload ./model-00011-of-00031.safetensors with huggingface_hub
Verified signature2ef9547 -
Upload ./model-00014-of-00031.safetensors with huggingface_hub
Verified signature89af890 -
Upload ./model-00004-of-00031.safetensors with huggingface_hub
Verified signature94b5f11 -
Upload ./model-00001-of-00031.safetensors with huggingface_hub
Verified signature2ffe821 -
Upload ./model-00025-of-00031.safetensors with huggingface_hub
Verified signature783bb37 -
Upload ./model-00007-of-00031.safetensors with huggingface_hub
Verified signature89bc290 -
Upload ./model-00023-of-00031.safetensors with huggingface_hub
Verified signature8ab2675 -
Upload ./model-00015-of-00031.safetensors with huggingface_hub
Verified signature14337d2 -
Upload ./model-00012-of-00031.safetensors with huggingface_hub
Verified signaturea4d85b0 -
Upload ./model-00019-of-00031.safetensors with huggingface_hub
Verified signature1c026da -
Upload ./model-00022-of-00031.safetensors with huggingface_hub
Verified signaturefc31c14 -
Upload ./model-00008-of-00031.safetensors with huggingface_hub
Verified signatured76d7ee -
Upload ./model-00030-of-00031.safetensors with huggingface_hub
Verified signaturee78c831 -
Upload ./modeling_qwen.py with huggingface_hub
Verified signatureb3249cf -
Upload ./special_tokens_map.json with huggingface_hub
Verified signature1e36521 -
Upload ./configuration_qwen.py with huggingface_hub
Verified signaturec5f5c96 -
Upload ./qwen.tiktoken with huggingface_hub
Verified signature0e36737 -
Upload ./model-00017-of-00031.safetensors with huggingface_hub
Verified signature34fb359 -
Upload ./model-00021-of-00031.safetensors with huggingface_hub
Verified signature2844300 -
Upload ./cache_autogptq_cuda_kernel_256.cu with huggingface_hub
Verified signature21bc090 -
Upload ./model-00020-of-00031.safetensors with huggingface_hub
Verified signature673755f -
Upload ./model.safetensors.index.json with huggingface_hub
Verified signature838559a -
Upload ./model-00013-of-00031.safetensors with huggingface_hub
Verified signatureebc8f79 -
Upload ./model-00016-of-00031.safetensors with huggingface_hub
Verified signaturec6b269a -
Upload ./model-00006-of-00031.safetensors with huggingface_hub
Verified signature906e282 -
Upload ./tokenizer_config.json with huggingface_hub
Verified signature446b843 -
Upload ./tokenization_qwen.py with huggingface_hub
Verified signature05fb55b -
Upload ./cache_autogptq_cuda_256.cpp with huggingface_hub
Verified signaturefc57957 -
Upload ./cpp_kernels.py with huggingface_hub
Verified signature3568706 -
Upload ./model-00009-of-00031.safetensors with huggingface_hub
Verified signature73bc4a8 -
Upload ./model-00002-of-00031.safetensors with huggingface_hub
Verified signature301b38e -
Upload ./model-00031-of-00031.safetensors with huggingface_hub
Verified signatureacb829a -
Upload ./model-00028-of-00031.safetensors with huggingface_hub
Verified signaturec253992 -
Upload ./model-00018-of-00031.safetensors with huggingface_hub
Verified signature7400706 -
Upload ./model-00024-of-00031.safetensors with huggingface_hub
Verified signature17ae299 -
Upload ./qwen_generation_utils.py with huggingface_hub
Verified signature849b107 -
Upload ./config.json with huggingface_hub
Verified signature7f64354 -
Upload ./model-00010-of-00031.safetensors with huggingface_hub
Verified signature78bc71f -
Upload ./model-00027-of-00031.safetensors with huggingface_hub
Verified signaturecfceff5 -
Upload ./model-00005-of-00031.safetensors with huggingface_hub
Verified signaturee71ed3f
-
Upload ./model-00027-of-00031.safetensors with huggingface_hub
Verified signature474b3f6