Instructions to use FreedomIntelligence/Apollo-34B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FreedomIntelligence/Apollo-34B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FreedomIntelligence/Apollo-34B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("FreedomIntelligence/Apollo-34B") model = AutoModelForCausalLM.from_pretrained("FreedomIntelligence/Apollo-34B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use FreedomIntelligence/Apollo-34B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FreedomIntelligence/Apollo-34B" # 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-34B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/FreedomIntelligence/Apollo-34B
- SGLang
How to use FreedomIntelligence/Apollo-34B 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-34B" \ --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-34B", "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-34B" \ --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-34B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use FreedomIntelligence/Apollo-34B with Docker Model Runner:
docker model run hf.co/FreedomIntelligence/Apollo-34B
Commit History
-
Update README.md
Verified signatureb3772a9
-
Update config.json
Verified signature8ffc6e1 -
Update README.md
Verified signatureb6d9edf -
Upload result.png
Verified signature9306245 -
Update README.md
Verified signature4806f19 -
Delete Apollo-34B
Verified signature193ca41
-
Upload ./model-00001-of-00015.safetensors with huggingface_hub
Verified signature3104057 -
Upload ./model-00004-of-00015.safetensors with huggingface_hub
Verified signaturecc6dd61 -
Upload ./generation_config.json with huggingface_hub
Verified signature869dcac -
Upload ./tokenizer.json with huggingface_hub
Verified signaturec76b799 -
Upload ./model-00003-of-00015.safetensors with huggingface_hub
Verified signature745611d -
Upload ./model-00011-of-00015.safetensors with huggingface_hub
Verified signatured3481ec -
Upload ./modeling_yi.py with huggingface_hub
Verified signature78a3901 -
Upload ./model-00006-of-00015.safetensors with huggingface_hub
Verified signature5a85b21 -
Upload ./model-00002-of-00015.safetensors with huggingface_hub
Verified signatureb68f5d7 -
Upload ./model-00012-of-00015.safetensors with huggingface_hub
Verified signature5142828 -
Upload ./model-00010-of-00015.safetensors with huggingface_hub
Verified signature2977d04 -
Upload ./model.safetensors.index.json with huggingface_hub
Verified signature358ed88 -
Upload ./model-00007-of-00015.safetensors with huggingface_hub
Verified signatureae68c2a -
Upload ./tokenization_yi.py with huggingface_hub
Verified signature8ca03f4 -
Upload ./model-00009-of-00015.safetensors with huggingface_hub
Verified signature85f0ea5 -
Upload ./tokenizer_config.json with huggingface_hub
Verified signature0e814e9 -
Upload ./model-00014-of-00015.safetensors with huggingface_hub
Verified signature9f614c4 -
Upload ./model-00005-of-00015.safetensors with huggingface_hub
Verified signature6cbfb88 -
Upload ./model-00008-of-00015.safetensors with huggingface_hub
Verified signature0753095 -
Upload ./model-00015-of-00015.safetensors with huggingface_hub
Verified signature2a4f1df -
Upload ./configuration_yi.py with huggingface_hub
Verified signature5d71fb0 -
Upload ./config.json with huggingface_hub
Verified signaturea111bdc -
Upload ./tokenizer.model with huggingface_hub
Verified signature29f2005 -
Upload ./model-00013-of-00015.safetensors with huggingface_hub
Verified signature42abe92
-
Update Apollo-34B/config.json
Verified signature22e103b -
Upload result.png
Verified signature178d865 -
Upload README.md
Verified signatured7ed8c8 -
Upload README.md
Verified signature7192825 -
Upload 3 files
Verified signaturef87314c -
Create assets/logo
Verified signature6effaf8 -
Rename readme.md to README.md
Verified signaturebb44508 -
Upload readme.md
Verified signature4bc2976 -
Upload Apollo-34B/model-00001-of-00015.safetensors with huggingface_hub
Verified signature712d602 -
Upload Apollo-34B/model-00004-of-00015.safetensors with huggingface_hub
Verified signature8b2b638 -
Upload Apollo-34B/generation_config.json with huggingface_hub
Verified signature4f55fe7 -
Upload Apollo-34B/tokenizer.json with huggingface_hub
Verified signature3908c5b -
Upload Apollo-34B/model-00003-of-00015.safetensors with huggingface_hub
Verified signaturea449847 -
Upload Apollo-34B/model-00011-of-00015.safetensors with huggingface_hub
Verified signature00c386a -
Upload Apollo-34B/modeling_yi.py with huggingface_hub
Verified signaturec9d8e55 -
Upload Apollo-34B/model-00006-of-00015.safetensors with huggingface_hub
Verified signature20787e0 -
Upload Apollo-34B/model-00002-of-00015.safetensors with huggingface_hub
Verified signature5fd5bdb -
Upload Apollo-34B/model-00012-of-00015.safetensors with huggingface_hub
Verified signaturec57ca7e -
Upload Apollo-34B/model-00010-of-00015.safetensors with huggingface_hub
Verified signature5e5eaa2 -
Upload Apollo-34B/model.safetensors.index.json with huggingface_hub
Verified signaturedb18141