Text Generation
Transformers
Safetensors
English
Chinese
qwen3
casual-lm
conversational
text-generation-inference
Instructions to use bmbgsj/ProRAG with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bmbgsj/ProRAG with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bmbgsj/ProRAG") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bmbgsj/ProRAG") model = AutoModelForCausalLM.from_pretrained("bmbgsj/ProRAG", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bmbgsj/ProRAG with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bmbgsj/ProRAG" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bmbgsj/ProRAG", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/bmbgsj/ProRAG
- SGLang
How to use bmbgsj/ProRAG 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 "bmbgsj/ProRAG" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bmbgsj/ProRAG", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "bmbgsj/ProRAG" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bmbgsj/ProRAG", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use bmbgsj/ProRAG with Docker Model Runner:
docker model run hf.co/bmbgsj/ProRAG
Commit History
-
Create README.md
Verified signature699561d
-
Update model: remove old version and upload new version
Verified signatureb7a5eac -
Delete vocab.json with huggingface_hub
Verified signature50d5fbe -
Delete tokenizer_config.json with huggingface_hub
Verified signature164be83 -
Delete tokenizer.json with huggingface_hub
Verified signature23b44ea -
Delete special_tokens_map.json with huggingface_hub
Verified signature9897cd7 -
Delete model.safetensors.index.json with huggingface_hub
Verified signature8fe7a19 -
Delete model-00004-of-00004.safetensors with huggingface_hub
Verified signature37a254a -
Delete model-00003-of-00004.safetensors with huggingface_hub
Verified signaturecd18272 -
Delete model-00002-of-00004.safetensors with huggingface_hub
Verified signaturebb297f2 -
Delete model-00001-of-00004.safetensors with huggingface_hub
Verified signature82fb788 -
Delete merges.txt with huggingface_hub
Verified signaturee3e0ec5 -
Delete generation_config.json with huggingface_hub
Verified signaturecc74c64 -
Delete config.json with huggingface_hub
Verified signatured3f38d7 -
Delete chat_template.jinja with huggingface_hub
Verified signaturecda6f6f -
Delete added_tokens.json with huggingface_hub
Verified signature79e86c4 -
Delete .gitattributes with huggingface_hub
Verified signaturea73e492 -
Update model: remove old version and upload new version
Verified signaturebe60fa8 -
Delete vocab.json with huggingface_hub
Verified signaturedb63943 -
Delete tokenizer_config.json with huggingface_hub
Verified signature7b7a13c -
Delete tokenizer.json with huggingface_hub
Verified signaturef8cb629 -
Delete special_tokens_map.json with huggingface_hub
Verified signature5d62bcb -
Delete model.safetensors.index.json with huggingface_hub
Verified signature08c7a8a -
Delete model-00004-of-00004.safetensors with huggingface_hub
Verified signature6b86b85 -
Delete model-00003-of-00004.safetensors with huggingface_hub
Verified signaturef52d326 -
Delete model-00002-of-00004.safetensors with huggingface_hub
Verified signature98d8034 -
Delete model-00001-of-00004.safetensors with huggingface_hub
Verified signature75c4763 -
Delete merges.txt with huggingface_hub
Verified signature0bc727c -
Delete generation_config.json with huggingface_hub
Verified signaturef1f4c95 -
Delete config.json with huggingface_hub
Verified signature239dc8f -
Delete chat_template.jinja with huggingface_hub
Verified signaturecf854f8 -
Delete added_tokens.json with huggingface_hub
Verified signature726bfc1 -
Delete .gitattributes with huggingface_hub
Verified signature9167262
-
Update model: remove old version and upload new version
Verified signature3163b37 -
Delete vocab.json with huggingface_hub
Verified signature72ccd3e -
Delete tokenizer_config.json with huggingface_hub
Verified signaturebb915e5 -
Delete tokenizer.json with huggingface_hub
Verified signaturea2a8570 -
Delete special_tokens_map.json with huggingface_hub
Verified signaturee004d42 -
Delete model.safetensors.index.json with huggingface_hub
Verified signaturefd88ebb -
Delete model-00004-of-00004.safetensors with huggingface_hub
Verified signature6c4f193 -
Delete model-00003-of-00004.safetensors with huggingface_hub
Verified signature141e6ac -
Delete model-00002-of-00004.safetensors with huggingface_hub
Verified signature435b8bd -
Delete model-00001-of-00004.safetensors with huggingface_hub
Verified signatured9f25dd -
Delete merges.txt with huggingface_hub
Verified signature4293e1d -
Delete generation_config.json with huggingface_hub
Verified signature8131cc1 -
Delete config.json with huggingface_hub
Verified signature12e55e5 -
Delete chat_template.jinja with huggingface_hub
Verified signaturec0fb778 -
Delete added_tokens.json with huggingface_hub
Verified signature7389cc7 -
Delete .gitattributes with huggingface_hub
Verified signaturedd95699 -
Update model: remove old version and upload new version
Verified signature7f7e949