Run this model with HF Jobs
Run IndexTeam/Index-1.9B-Character on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/IndexTeam/Index-1.9B-Character. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/IndexTeam/Index-1.9B-Character on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/IndexTeam/Index-1.9B-Character. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/IndexTeam/Index-1.9B-Character. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
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)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("IndexTeam/Index-1.9B-Character", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- 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
Upload 2 files
Browse filesFiles changed (2)
- README.md+6-6
- README_zh.mdAdded+41
8 unmodified lines9101112131415161718192021222324258 unmodified lines</h1></div>## 模型介绍Index-1.9B-Character模型是由Index团队自主研发的大语言模型系列中的19亿参数规模的角色扮演模型,用户可以通过上传符合要求的角色对话语料实现few shots角色定制。使用方式和相关代码详见[Index-1.9B/roleplay](https://github.com/bilibili/Index-1.9B/tree/main/roleplay)更多细节详见我们的[GitHub](https://github.com/bilibili/Index-1.9B)和[Index-1.9B技术报告](https://github.com/bilibili/Index-1.9B/blob/main/Index-1.9B%20%E6%8A%80%E6%9C%AF%E6%8A%A5%E5%91%8A.pdf)Index-1.9B-Character模型采用角色扮演领域的权威benchmark CharacterEval进行评估,该评测集从角色一致性、对话能力、角色扮演吸引力多个粒度进行评测,我们的1.9b模型整体均分排名第九,显著优于其他同量级模型。|模型|均分|角色一致性|对话能力|角色扮演吸引力||:----:|:----:|:----:|:----:|:----:||CharacterYuyan-RLHF|3.36|2.856|4.037|3.188||CharacterYuyan|3.309|2.88|3.931|3.117|8 unmodified lines9101112131415161718192021222324258 unmodified lines</h1></div>## Model IntroductionThe Index-1.9B-Character model is a role-playing model with 1.9 billion parameters in the large language model series independently developed by the Index team. Users can customize the few shots role by uploading the role dialogue materials that meet the requirements.For usage and related codes, please see [Index-1.9B/roleplay](https://github.com/bilibili/Index-1.9B/tree/main/roleplay)For more details, see our [GitHub](https://github.com/bilibili/Index-1.9B) and [Index-1.9B Technical Report](https://github.com/bilibili/Index-1.9B/blob/main/Index-1.9B%20%E6%8A%80%E6%9C%AF%E6%8A%A5%E5%91%8A.pdf)The Index-1.9B-Character model is evaluated using the authoritative benchmark CharacterEval in the role-playing field. The evaluation set evaluates multiple granularities from the perspectives of character consistency, dialogue ability, and role-playing attractiveness. Our 1.9b model ranks ninth in overall average score, significantly better than other models of the same level.|Model|Average score|character consistency|dialogue ability|role-playing attractiveness||:----:|:----:|:----:|:----:|:----:||CharacterYuyan-RLHF|3.36|2.856|4.037|3.188||CharacterYuyan|3.309|2.88|3.931|3.117|
1234567891011121314151617181920212223242526272829303132333435363738394041---license: otherlicense_name: licenselicense_link: LICENSE---<div align="center"><h1> Index-1.9B</h1></div>
## 模型介绍
Index-1.9B-Character模型是由Index团队自主研发的大语言模型系列中的19亿参数规模的角色扮演模型,用户可以通过上传符合要求的角色对话语料实现few shots角色定制。
使用方式和相关代码详见[Index-1.9B/roleplay](https://github.com/bilibili/Index-1.9B/tree/main/roleplay)
更多细节详见我们的[GitHub](https://github.com/bilibili/Index-1.9B)和[Index-1.9B技术报告](https://github.com/bilibili/Index-1.9B/blob/main/Index-1.9B%20%E6%8A%80%E6%9C%AF%E6%8A%A5%E5%91%8A.pdf)
Index-1.9B-Character模型采用角色扮演领域的权威benchmark CharacterEval进行评估,该评测集从角色一致性、对话能力、角色扮演吸引力多个粒度进行评测,我们的1.9b模型整体均分排名第九,显著优于其他同量级模型。
|模型|均分|角色一致性|对话能力|角色扮演吸引力||:----:|:----:|:----:|:----:|:----:||CharacterYuyan-RLHF|3.36|2.856|4.037|3.188||CharacterYuyan|3.309|2.88|3.931|3.117||BC-NPC-Turbo|3.169|2.764|3.798|2.946||MiniMax|3.135|2.718|3.784|2.902||Baichuan2-13B|3.129|2.701|3.795|2.89||InternLM-20B|3.124|2.715|3.745|2.911||Baichuan2-7B|3.11|2.7|3.757|2.874||**Index-1.9B-character**|3.109|2.676|3.789|2.862||InternLM-7B|3.034|2.62|3.698|2.784||XVERSE-13B|3.022|2.632|3.605|2.83||Qwen-14B|3.016|2.649|3.542|2.858||GPT-4|3.006|2.697|3.448|2.873||Xingchen|2.991|2.595|3.646|2.732||XVERSE-7B|2.963|2.564|3.554|2.772||CharacterGLM|2.937|2.493|3.623|2.695||ChatGLM3-6B|2.898|2.556|3.399|2.739||Qwen-7B|2.849|2.54|3.327|2.679||GPT-3.5|2.381|2.101|2.749|2.293|README.md+6-6
README_zh.mdAdded+41