Instructions to use IndexTeam/Index-1.9B-Character with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IndexTeam/Index-1.9B-Character with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="IndexTeam/Index-1.9B-Character", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("IndexTeam/Index-1.9B-Character", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use IndexTeam/Index-1.9B-Character with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "IndexTeam/Index-1.9B-Character" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IndexTeam/Index-1.9B-Character", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/IndexTeam/Index-1.9B-Character
- SGLang
How to use IndexTeam/Index-1.9B-Character 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 "IndexTeam/Index-1.9B-Character" \ --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": "IndexTeam/Index-1.9B-Character", "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 "IndexTeam/Index-1.9B-Character" \ --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": "IndexTeam/Index-1.9B-Character", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use IndexTeam/Index-1.9B-Character with Docker Model Runner:
docker model run hf.co/IndexTeam/Index-1.9B-Character
Update README.md
Browse files
README.md
CHANGED
|
@@ -20,7 +20,7 @@ Index-1.9B-Character模型是由Index团队自主研发的大语言模型系列
|
|
| 20 |
Index-1.9B-Character模型采用角色扮演领域的权威benchmark CharacterEval进行评估,该评测集从角色一致性、对话能力、角色扮演吸引力多个粒度进行评测,我们的1.9b模型整体均分排名第九,显著优于其他同量级模型。
|
| 21 |
|
| 22 |
|模型|均分|角色一致性|对话能力|角色扮演吸引力|
|
| 23 |
-
|---|---|---|---|---|
|
| 24 |
|CharacterYuyan-RLHF|3.36|2.856|4.037|3.188|
|
| 25 |
|CharacterYuyan|3.309|2.88|3.931|3.117|
|
| 26 |
|BC-NPC-Turbo|3.169|2.764|3.798|2.946|
|
|
|
|
| 20 |
Index-1.9B-Character模型采用角色扮演领域的权威benchmark CharacterEval进行评估,该评测集从角色一致性、对话能力、角色扮演吸引力多个粒度进行评测,我们的1.9b模型整体均分排名第九,显著优于其他同量级模型。
|
| 21 |
|
| 22 |
|模型|均分|角色一致性|对话能力|角色扮演吸引力|
|
| 23 |
+
|:----:|:----:|:----:|:----:|:----:|
|
| 24 |
|CharacterYuyan-RLHF|3.36|2.856|4.037|3.188|
|
| 25 |
|CharacterYuyan|3.309|2.88|3.931|3.117|
|
| 26 |
|BC-NPC-Turbo|3.169|2.764|3.798|2.946|
|