Text Generation
Transformers
Safetensors
Spanish
qwen2
chat
conversational
text-generation-inference
Instructions to use IIC/RigoChat-7b-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IIC/RigoChat-7b-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="IIC/RigoChat-7b-v2") 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("IIC/RigoChat-7b-v2") model = AutoModelForCausalLM.from_pretrained("IIC/RigoChat-7b-v2", 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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use IIC/RigoChat-7b-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "IIC/RigoChat-7b-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IIC/RigoChat-7b-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/IIC/RigoChat-7b-v2
- SGLang
How to use IIC/RigoChat-7b-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 "IIC/RigoChat-7b-v2" \ --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": "IIC/RigoChat-7b-v2", "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 "IIC/RigoChat-7b-v2" \ --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": "IIC/RigoChat-7b-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use IIC/RigoChat-7b-v2 with Docker Model Runner:
docker model run hf.co/IIC/RigoChat-7b-v2
Commit History
-
Update README.md
Verified signature666a485 -
Update README.md
Verified signature4acdb67 -
Update README.md
Verified signatured58321c -
Update README.md
Verified signature36599ad
-
feat: update evaluations.
Verified signature0caa855
-
Update README.md
Verified signatureec24753 -
Update README.md
Verified signature699fc74 -
Update README.md
Verified signature994fdf7 -
Fixed typo
Verified signature3baf23d -
Update README.md
Verified signaturea92a118 -
Update README.md
Verified signature4068d41
-
Update README.md
Verified signaturecf25684 -
Update README.md
Verified signature5afb025 -
Update README.md
Verified signatureb9c119e -
Update README.md
Verified signaturef168b45 -
Upload RigoChat.jpg
Verified signaturee3842a6 -
Update README.md
Verified signature3ecda4f -
Update LICENCIA
Verified signatureca39167 -
Update LICENCIA
Verified signature28c16a7 -
Update LICENSE
Verified signature4ff3db6 -
Update README.md
Verified signaturee6e8dee
-
Update README.md
Verified signature63c1ddf -
Update README.md
Verified signature791a854
-
Update README.md
Verified signaturef445671
-
Update README.md
Verified signature6e80bcb -
Update README.md
Verified signature2c20427 -
Update README.md
Verified signaturefbe429f -
Update README.md
Verified signature8e9a757
-
Update README.md
Verified signature747be4b -
Upload 2 files
Verified signature3667e4b -
Update README.md
Verified signaturedd12671 -
Upload 2 files
Verified signature52bee2a
-
Update README.md
Verified signaturebbe4f04
-
Update README.md
Verified signaturefcbc4e6 -
Update README.md
Verified signature7b015ac
-
Upload merges.txt
Verified signature0d3c9de -
Update README.md
Verified signature66d307e -
Update README.md
Verified signaturef97acb6 -
Update README.md
Verified signature9ca6703 -
Update README.md
Verified signature2276773 -
Update README.md
Verified signature77af4c3 -
Update README.md
Verified signature01d9553 -
Update README.md
Verified signature9d9086c
-
Update README.md
Verified signature1e791b6 -
Update README.md
Verified signature3e7c156 -
Update README.md
Verified signature8d1acbf -
Update README.md
Verified signature22973fd -
Update README.md
Verified signature1df3f59 -
Update README.md
Verified signatureade8595 -
Update README.md
Verified signature85fbd11