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)# 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=40) 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
Upload 2 files
Browse files
LICENCIA
CHANGED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
-
ACUERDO DE LICENCIA NO COMERCIAL DE RIGOCHAT
|
| 2 |
|
| 3 |
Fecha de lanzamiento: ……………..
|
| 4 |
|
| 5 |
Al utilizar o distribuir cualquier parte o elemento del Modelo de
|
| 6 |
-
lenguaje RigoChat 2, Usted acepta estar sujeto a este Acuerdo,
|
| 7 |
reconociendo los presentes términos y condiciones.
|
| 8 |
|
| 9 |
1\. DEFINICIONES
|
| 10 |
|
| 11 |
-
1.1. Modelo: se refiere al Modelo de lenguaje
|
| 12 |
-
ADIC, puesto a disposición en virtud de este Acuerdo.
|
| 13 |
|
| 14 |
1.2. Licenciante: ADIC.
|
| 15 |
|
|
@@ -107,13 +107,13 @@ cualquier Trabajo derivado del mismo, éstos permanecerán sujetos a este
|
|
| 107 |
Acuerdo y usted deberá (i) proporcionar una copia de este Acuerdo a
|
| 108 |
dicho tercero y (ii) conservar el siguiente aviso de atribución dentro
|
| 109 |
de un archivo de texto de "Aviso" distribuido como parte de dichas
|
| 110 |
-
copias: "*RigoChat
|
| 111 |
-
bajo una licencia de investigación no comercial otorgada por
|
| 112 |
-
usted crea un Trabajo derivado del Modelo, usted debe agregar
|
| 113 |
-
propios avisos de atribución al archivo de Aviso incluido con el
|
| 114 |
-
siempre que indique claramente qué atribuciones se aplican al
|
| 115 |
-
debe indicar en el archivo de Aviso que modificó el Modelo y
|
| 116 |
-
modificó.
|
| 117 |
|
| 118 |
3\. EXCLUSIÓN DE GARANTÍA
|
| 119 |
|
|
|
|
| 1 |
+
ACUERDO DE LICENCIA NO COMERCIAL DE RIGOCHAT
|
| 2 |
|
| 3 |
Fecha de lanzamiento: ……………..
|
| 4 |
|
| 5 |
Al utilizar o distribuir cualquier parte o elemento del Modelo de
|
| 6 |
+
lenguaje RigoChat (versión 2), Usted acepta estar sujeto a este Acuerdo,
|
| 7 |
reconociendo los presentes términos y condiciones.
|
| 8 |
|
| 9 |
1\. DEFINICIONES
|
| 10 |
|
| 11 |
+
1.1. Modelo: se refiere al Modelo de lenguaje RigoChat (versión 2),
|
| 12 |
+
propiedad de ADIC, puesto a disposición en virtud de este Acuerdo.
|
| 13 |
|
| 14 |
1.2. Licenciante: ADIC.
|
| 15 |
|
|
|
|
| 107 |
Acuerdo y usted deberá (i) proporcionar una copia de este Acuerdo a
|
| 108 |
dicho tercero y (ii) conservar el siguiente aviso de atribución dentro
|
| 109 |
de un archivo de texto de "Aviso" distribuido como parte de dichas
|
| 110 |
+
copias: "*RigoChat (v2), modelo lenguaje propiedad de ADIC, se
|
| 111 |
+
distribuye bajo una licencia de investigación no comercial otorgada por
|
| 112 |
+
ADIC*”. Si usted crea un Trabajo derivado del Modelo, usted debe agregar
|
| 113 |
+
sus propios avisos de atribución al archivo de Aviso incluido con el
|
| 114 |
+
Modelo, siempre que indique claramente qué atribuciones se aplican al
|
| 115 |
+
Modelo y debe indicar en el archivo de Aviso que modificó el Modelo y
|
| 116 |
+
cómo lo modificó.
|
| 117 |
|
| 118 |
3\. EXCLUSIÓN DE GARANTÍA
|
| 119 |
|
LICENSE
CHANGED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
-
RIGOCHAT
|
| 2 |
|
| 3 |
Release Date: ………………..
|
| 4 |
|
| 5 |
-
By using or distributing any portion or element of the RigoChat
|
| 6 |
-
|
| 7 |
-
|
| 8 |
|
| 9 |
1\. DEFINITIONS
|
| 10 |
|
| 11 |
-
1.1. Model: Refers to the RigoChat
|
| 12 |
-
available under this Agreement.
|
| 13 |
|
| 14 |
1.2. Licensor: ADIC.
|
| 15 |
|
|
@@ -98,13 +98,13 @@ c\. If you distribute or make the Model or any Derivative Work available
|
|
| 98 |
to a third party, such distribution or availability will remain subject
|
| 99 |
to this Agreement, and you must (i) provide a copy of this Agreement to
|
| 100 |
such third party and (ii) retain the following attribution notice in a
|
| 101 |
-
"Notice" text file distributed as part of such copies: "*RigoChat
|
| 102 |
-
language model owned by ADIC and is distributed under a
|
| 103 |
-
research license granted by ADIC.*” If you create a
|
| 104 |
-
the Model, you must add your own attribution
|
| 105 |
-
included with the Model, clearly indicating
|
| 106 |
-
the Model, and you must state in the Notice
|
| 107 |
-
Model and describe how it was modified.
|
| 108 |
|
| 109 |
3\. WARRANTY DISCLAIMER
|
| 110 |
|
|
|
|
| 1 |
+
RIGOCHAT NON-COMMERCIAL LICENSE AGREEMENT
|
| 2 |
|
| 3 |
Release Date: ………………..
|
| 4 |
|
| 5 |
+
By using or distributing any portion or element of the RigoChat Language
|
| 6 |
+
Model (v2), you agree to be bound by this Agreement, acknowledging the
|
| 7 |
+
following terms and conditions.
|
| 8 |
|
| 9 |
1\. DEFINITIONS
|
| 10 |
|
| 11 |
+
1.1. Model: Refers to the RigoChat Language Model (v2), owned by ADIC,
|
| 12 |
+
made available under this Agreement.
|
| 13 |
|
| 14 |
1.2. Licensor: ADIC.
|
| 15 |
|
|
|
|
| 98 |
to a third party, such distribution or availability will remain subject
|
| 99 |
to this Agreement, and you must (i) provide a copy of this Agreement to
|
| 100 |
such third party and (ii) retain the following attribution notice in a
|
| 101 |
+
"Notice" text file distributed as part of such copies: "*RigoChat (v2)
|
| 102 |
+
is a language model owned by ADIC and is distributed under a
|
| 103 |
+
non-commercial research license granted by ADIC.*” If you create a
|
| 104 |
+
Derivative Work from the Model, you must add your own attribution
|
| 105 |
+
notices to the Notice file included with the Model, clearly indicating
|
| 106 |
+
which attributions apply to the Model, and you must state in the Notice
|
| 107 |
+
file that you changed the Model and describe how it was modified.
|
| 108 |
|
| 109 |
3\. WARRANTY DISCLAIMER
|
| 110 |
|