Instructions to use APMIC/caigun-model-34BX2-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use APMIC/caigun-model-34BX2-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="APMIC/caigun-model-34BX2-v2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("APMIC/caigun-model-34BX2-v2") model = AutoModelForCausalLM.from_pretrained("APMIC/caigun-model-34BX2-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use APMIC/caigun-model-34BX2-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "APMIC/caigun-model-34BX2-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "APMIC/caigun-model-34BX2-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/APMIC/caigun-model-34BX2-v2
- SGLang
How to use APMIC/caigun-model-34BX2-v2 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 "APMIC/caigun-model-34BX2-v2" \ --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": "APMIC/caigun-model-34BX2-v2", "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 "APMIC/caigun-model-34BX2-v2" \ --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": "APMIC/caigun-model-34BX2-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use APMIC/caigun-model-34BX2-v2 with Docker Model Runner:
docker model run hf.co/APMIC/caigun-model-34BX2-v2
Commit History
-
Upload training_param.txt with huggingface_hub
Verified signaturec042092 -
Upload training_args.bin with huggingface_hub
Verified signaturee6829ab -
Upload tokenizer_config.json with huggingface_hub
Verified signature69c3338 -
Upload tokenizer.model with huggingface_hub
Verified signature64bea47 -
Upload special_tokens_map.json with huggingface_hub
Verified signature7f5675f -
Upload model.safetensors.index.json with huggingface_hub
Verified signatureb63e62b -
Upload model-00025-of-00025.safetensors with huggingface_hub
Verified signaturebf677f4 -
Upload model-00024-of-00025.safetensors with huggingface_hub
Verified signature689b3d9 -
Upload model-00023-of-00025.safetensors with huggingface_hub
Verified signature186d986 -
Upload model-00022-of-00025.safetensors with huggingface_hub
Verified signature6a3d557 -
Upload model-00021-of-00025.safetensors with huggingface_hub
Verified signature3f693e0 -
Upload model-00020-of-00025.safetensors with huggingface_hub
Verified signature05081cf -
Upload model-00019-of-00025.safetensors with huggingface_hub
Verified signature1ed24ad -
Upload model-00018-of-00025.safetensors with huggingface_hub
Verified signature565e7d0 -
Upload model-00017-of-00025.safetensors with huggingface_hub
Verified signature01d1324 -
Upload model-00016-of-00025.safetensors with huggingface_hub
Verified signature745d764 -
Upload model-00015-of-00025.safetensors with huggingface_hub
Verified signatureff81fce -
Upload model-00014-of-00025.safetensors with huggingface_hub
Verified signature798526d -
Upload model-00013-of-00025.safetensors with huggingface_hub
Verified signaturec5bc7f0 -
Upload model-00012-of-00025.safetensors with huggingface_hub
Verified signatureedc735c -
Upload model-00011-of-00025.safetensors with huggingface_hub
Verified signature02bb4c7 -
Upload model-00010-of-00025.safetensors with huggingface_hub
Verified signature14f13da -
Upload model-00009-of-00025.safetensors with huggingface_hub
Verified signature9863a11 -
Upload model-00008-of-00025.safetensors with huggingface_hub
Verified signaturefe8d45a -
Upload model-00007-of-00025.safetensors with huggingface_hub
Verified signature54899b0 -
Upload model-00006-of-00025.safetensors with huggingface_hub
Verified signature420549d -
Upload model-00005-of-00025.safetensors with huggingface_hub
Verified signature5c06654 -
Upload model-00004-of-00025.safetensors with huggingface_hub
Verified signature45f5397 -
Upload model-00003-of-00025.safetensors with huggingface_hub
Verified signaturecd42be7 -
Upload model-00002-of-00025.safetensors with huggingface_hub
Verified signaturee7a829b -
Upload model-00001-of-00025.safetensors with huggingface_hub
Verified signatured6a79f2 -
Upload generation_config.json with huggingface_hub
Verified signature4304e60 -
Upload config.json with huggingface_hub
Verified signature3ce494c -
Upload model-00001-of-00025.safetensors with huggingface_hub
Verified signatureb34507d -
initial commit
Verified signature91e17a2