Instructions to use Arc53/DocsGPT-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Arc53/DocsGPT-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Arc53/DocsGPT-7B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Arc53/DocsGPT-7B") model = AutoModelForCausalLM.from_pretrained("Arc53/DocsGPT-7B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Arc53/DocsGPT-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Arc53/DocsGPT-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Arc53/DocsGPT-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Arc53/DocsGPT-7B
- SGLang
How to use Arc53/DocsGPT-7B 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 "Arc53/DocsGPT-7B" \ --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": "Arc53/DocsGPT-7B", "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 "Arc53/DocsGPT-7B" \ --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": "Arc53/DocsGPT-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Arc53/DocsGPT-7B with Docker Model Runner:
docker model run hf.co/Arc53/DocsGPT-7B
Commit History
-
Update README.md
8850ce7 -
Upload 14 files
7e91c05 -
Delete tokenizer_config.json
9e93ec4 -
Delete tokenizer.json
d2cedcf -
Delete special_tokens_map.json
080e7f3 -
Delete pytorch_model.bin.index.json
13d1dc2 -
Delete pytorch_model.bin
cc1a7dc -
Delete pytorch_model-00002-of-00002.bin
edfd1dc -
Delete pytorch_model-00001-of-00002.bin
8fb186d -
Delete param_init_fns.py
52794a7 -
Delete norm.py
6c6979d -
Delete modeling_mpt.py
bf5cac7 -
Delete meta_init_context.py
4c98003 -
Delete hf_prefixlm_converter.py
8ead9de -
Delete generation_config.json
a772c35 -
Delete flash_attn_triton.py
f8bcaf6 -
Delete custom_embedding.py
84af0e8 -
Delete configuration_mpt.py
5888efb -
Delete config.json
2583bf9 -
Delete blocks.py
a637176 -
Delete attention.py
928d257 -
Delete adapt_tokenizer.py
6af3d36
-
Update README.md
3a4d943 -
Update README.md
d0bd4c6 -
Update README.md
8388b2a
-
Update README.md
9dec0f1 -
Update README.md
9f21c83 -
Update README.md
8ff621d -
Update README.md
527e7f8 -
Update README.md
3c10c11 -
Upload 17 files
71151cd -
Upload 3 files
e3eae3f -
initial commit
60edbfc