Instructions to use IDEA-CCNL/Ziya-Coding-34B-v1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IDEA-CCNL/Ziya-Coding-34B-v1.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="IDEA-CCNL/Ziya-Coding-34B-v1.0")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("IDEA-CCNL/Ziya-Coding-34B-v1.0") model = AutoModelForCausalLM.from_pretrained("IDEA-CCNL/Ziya-Coding-34B-v1.0") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use IDEA-CCNL/Ziya-Coding-34B-v1.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "IDEA-CCNL/Ziya-Coding-34B-v1.0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IDEA-CCNL/Ziya-Coding-34B-v1.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/IDEA-CCNL/Ziya-Coding-34B-v1.0
- SGLang
How to use IDEA-CCNL/Ziya-Coding-34B-v1.0 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 "IDEA-CCNL/Ziya-Coding-34B-v1.0" \ --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": "IDEA-CCNL/Ziya-Coding-34B-v1.0", "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 "IDEA-CCNL/Ziya-Coding-34B-v1.0" \ --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": "IDEA-CCNL/Ziya-Coding-34B-v1.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use IDEA-CCNL/Ziya-Coding-34B-v1.0 with Docker Model Runner:
docker model run hf.co/IDEA-CCNL/Ziya-Coding-34B-v1.0
Upload folder using huggingface_hub
Upload folder using huggingface_hub
Multi commit ID: 1dd9876c4232c0c7dbd9bd7dd09e02267011b603f9c9c4b816aaf2f576a64de0
Scheduled commits:
- Upload 1 file(s) totalling 2.9G (3799d28436535840f82f9c5fbfdfa904e3e3385edcef91efb0eb39ae12c11e1a)
- Upload 1 file(s) totalling 2.8G (e00fad4a14d6d3c697b053a85fb3dcef30f949824d5ad7ca86b5355c1e91fbfd)
- Upload 1 file(s) totalling 2.8G (ebcd4ee4502869d53921eaadde2913363117244e60c6164d6aa3731776f58a17)
- Upload 1 file(s) totalling 2.8G (4a3c4cc370400784ed118b22305706ab288e5505d690d4c423a4e4af125ecb91)
- Upload 1 file(s) totalling 2.8G (651447a69b35350930af6cdbf87ec268046bcb20fe289a580fed0426a73862b2)
- Upload 1 file(s) totalling 2.8G (1e7072a71828e524f63e65f1db3b05266e72688f6fbe64daad328566de24df66)
- Upload 1 file(s) totalling 2.8G (b590c08be0f90bfce05b09c21bb89dc23b39479696ea6bb18ba9ff9e9e0b46e6)
- Upload 1 file(s) totalling 2.8G (f245e9f86f9cee86080dd7ee23f637a6ffbe14f0bb46e95c3dacddd11cd3bd0c)
- Upload 1 file(s) totalling 2.8G (b2cb22746e038694365d108c5ee0f07f306ca121707e5192e832af74d8687ea9)
- Upload 1 file(s) totalling 2.8G (275136ed451891aae64384001ccc33abd4179c6819814e4e12cefe73b286fa0b)
- Upload 1 file(s) totalling 2.8G (7bd042a1921916119c8a20701a874e733e7341533e6d6b50746723b76d68d087)
- Upload 1 file(s) totalling 2.8G (f83892a0f8d791e72af295bc0da891bd9f63eae56283cd2ee64ff16163ab342a)
- Upload 1 file(s) totalling 2.8G (47529692fa44e3434192632d0acb8afa5ab233b891816022e43b6e9c04f0b5f1)
- Upload 1 file(s) totalling 2.8G (f9ae009bb7cc9ab8140ad5dd4315cdc358645c120c95fa12437f4e91e87801d5)
- Upload 1 file(s) totalling 2.8G (5709b9b439fec1af5c63468eb14e3a284c8fef9748b677d90da278b9e474add7)
- Upload 1 file(s) totalling 2.8G (b564c812112cf7a5c0109403df1d5a4b36e30a8a50ca2ff296b6586859bf7f6c)
- Upload 1 file(s) totalling 2.8G (0a5572370680ff651cad4a50667415dd2b2edc46c04d1400c8d0b24930c77c01)
- Upload 1 file(s) totalling 2.8G (4cefa1bbb1ed7a0c512201f82b67ccd7adf190bf754ad2aad986345c95d22bb8)
- Upload 1 file(s) totalling 2.8G (e6153892e87afd735ba87f067cdb1081570ec25aa02a56ee205ac091e0f2123a)
- Upload 1 file(s) totalling 2.8G (619be2c34bf114b5d5d6e9108ef02efc44dc97119e0b379b4cf86a61d8416d3d)
- Upload 1 file(s) totalling 2.8G (9027e3ddca4503b312af2a0fcb482fbef51bf58c486c40a728f2ebcc16e1ddf9)
- Upload 1 file(s) totalling 2.8G (30162fbe0e5bec2216e5fa2dcee24bb3891b11bbfc6f7a421edcd88006329e3b)
- Upload 1 file(s) totalling 2.8G (27d613f2f58de0500c142f141e05d0f1f201c74f55679a74014121aa04d07cc2)
- Upload 1 file(s) totalling 2.8G (9119006edd2a5e698c869b26f001b5bc65b43f6e026faafce27dfbb3eca44854)
- Upload 8 file(s) totalling 885.6M (6d25d761fb75df5c472aa728c368e0d0d239719073d451d9a2b7cda3234abe54)
This is a PR opened using the huggingface_hub library in the context of a multi-commit. PR can be commented as a usual PR. However, please be aware that manually updating the PR description, changing the PR status, or pushing new commits, is not recommended as it might corrupt the commit process. Learn more about multi-commits in this guide.
Multi-commit is now completed! You can ping the repo owner to review the changes. This PR can now be commented or modified without risking to corrupt it.
This is a comment posted using the huggingface_hub library in the context of a multi-commit. Learn more about multi-commits in this guide.