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
-
Upload Apollo-72B/model-00016-of-00031.safetensors with huggingface_hub
Verified signature6fea671 -
Upload Apollo-72B/model-00006-of-00031.safetensors with huggingface_hub
Verified signature3805646 -
Upload Apollo-72B/tokenizer_config.json with huggingface_hub
Verified signature8942b16 -
Upload Apollo-72B/tokenization_qwen.py with huggingface_hub
Verified signature97b0290 -
Upload Apollo-72B/cache_autogptq_cuda_256.cpp with huggingface_hub
Verified signatureab61e53 -
Upload Apollo-72B/cpp_kernels.py with huggingface_hub
Verified signatureef4a7ca -
Upload Apollo-72B/model-00009-of-00031.safetensors with huggingface_hub
Verified signaturef3f1bb7 -
Upload Apollo-72B/model-00002-of-00031.safetensors with huggingface_hub
Verified signaturefd4ffa3 -
Upload Apollo-72B/model-00031-of-00031.safetensors with huggingface_hub
Verified signature077490c -
Upload Apollo-72B/model-00028-of-00031.safetensors with huggingface_hub
Verified signature382d174 -
Upload Apollo-72B/model-00018-of-00031.safetensors with huggingface_hub
Verified signature0b65835 -
Upload Apollo-72B/model-00024-of-00031.safetensors with huggingface_hub
Verified signature4cbe45f -
Upload Apollo-72B/qwen_generation_utils.py with huggingface_hub
Verified signature8de2ec1 -
Upload Apollo-72B/config.json with huggingface_hub
Verified signatureaaedddf -
Upload Apollo-72B/model-00010-of-00031.safetensors with huggingface_hub
Verified signaturec118562 -
Upload Apollo-72B/model-00027-of-00031.safetensors with huggingface_hub
Verified signaturec55c806 -
Upload Apollo-72B/model-00005-of-00031.safetensors with huggingface_hub
Verified signatureaede00a -
initial commit
Verified signaturec2c8bf9