Instructions to use IndexTeam/Index-1.9B-Chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IndexTeam/Index-1.9B-Chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="IndexTeam/Index-1.9B-Chat", 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-Chat", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use IndexTeam/Index-1.9B-Chat 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-Chat" # 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-Chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/IndexTeam/Index-1.9B-Chat
- SGLang
How to use IndexTeam/Index-1.9B-Chat 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-Chat" \ --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-Chat", "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-Chat" \ --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-Chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use IndexTeam/Index-1.9B-Chat with Docker Model Runner:
docker model run hf.co/IndexTeam/Index-1.9B-Chat
Add pipeline_tag, library_name and paper link
#6
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -2,13 +2,18 @@
|
|
| 2 |
license: other
|
| 3 |
license_name: license
|
| 4 |
license_link: LICENSE
|
|
|
|
|
|
|
| 5 |
---
|
|
|
|
| 6 |
<div align="center">
|
| 7 |
<h1>
|
| 8 |
Index-1.9B-Chat
|
| 9 |
</h1>
|
| 10 |
</div>
|
| 11 |
|
|
|
|
|
|
|
| 12 |
## Model Introduction
|
| 13 |
|
| 14 |
We are excited to announce the release of a lightweight version from the Index series models: the Index-1.9B series.
|
|
@@ -53,4 +58,4 @@ model_output = generator(model_input, max_new_tokens=300, top_k=5, top_p=0.8, te
|
|
| 53 |
|
| 54 |
print('User:', query)
|
| 55 |
print('Model:', model_output)
|
| 56 |
-
```
|
|
|
|
| 2 |
license: other
|
| 3 |
license_name: license
|
| 4 |
license_link: LICENSE
|
| 5 |
+
library_name: transformers
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
---
|
| 8 |
+
|
| 9 |
<div align="center">
|
| 10 |
<h1>
|
| 11 |
Index-1.9B-Chat
|
| 12 |
</h1>
|
| 13 |
</div>
|
| 14 |
|
| 15 |
+
The Index-1.9B series is presented in the [Index SLM Technical Report](https://huggingface.co/papers/2607.09885).
|
| 16 |
+
|
| 17 |
## Model Introduction
|
| 18 |
|
| 19 |
We are excited to announce the release of a lightweight version from the Index series models: the Index-1.9B series.
|
|
|
|
| 58 |
|
| 59 |
print('User:', query)
|
| 60 |
print('Model:', model_output)
|
| 61 |
+
```
|