Instructions to use AuriLab/gpt-bi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AuriLab/gpt-bi with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AuriLab/gpt-bi") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AuriLab/gpt-bi") model = AutoModelForCausalLM.from_pretrained("AuriLab/gpt-bi") 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AuriLab/gpt-bi with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AuriLab/gpt-bi" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AuriLab/gpt-bi", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AuriLab/gpt-bi
- SGLang
How to use AuriLab/gpt-bi 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 "AuriLab/gpt-bi" \ --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": "AuriLab/gpt-bi", "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 "AuriLab/gpt-bi" \ --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": "AuriLab/gpt-bi", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use AuriLab/gpt-bi with Docker Model Runner:
docker model run hf.co/AuriLab/gpt-bi
Delete tokenizer.json
Browse files- tokenizer.json +0 -52
tokenizer.json
DELETED
|
@@ -1,52 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"version": "1.0",
|
| 3 |
-
"truncation": null,
|
| 4 |
-
"padding": null,
|
| 5 |
-
"added_tokens": [
|
| 6 |
-
{
|
| 7 |
-
"id": 0,
|
| 8 |
-
"content": "<|endoftext|>",
|
| 9 |
-
"single_word": false,
|
| 10 |
-
"lstrip": false,
|
| 11 |
-
"rstrip": false,
|
| 12 |
-
"normalized": false,
|
| 13 |
-
"special": true
|
| 14 |
-
},
|
| 15 |
-
{
|
| 16 |
-
"id": 1,
|
| 17 |
-
"content": "<|im_start|>",
|
| 18 |
-
"single_word": false,
|
| 19 |
-
"lstrip": false,
|
| 20 |
-
"rstrip": false,
|
| 21 |
-
"normalized": false,
|
| 22 |
-
"special": true
|
| 23 |
-
},
|
| 24 |
-
{
|
| 25 |
-
"id": 2,
|
| 26 |
-
"content": "<|im_end|>",
|
| 27 |
-
"single_word": false,
|
| 28 |
-
"lstrip": false,
|
| 29 |
-
"rstrip": false,
|
| 30 |
-
"normalized": false,
|
| 31 |
-
"special": true
|
| 32 |
-
}
|
| 33 |
-
],
|
| 34 |
-
"normalizer": null,
|
| 35 |
-
"pre_tokenizer": {
|
| 36 |
-
"type": "Whitespace"
|
| 37 |
-
},
|
| 38 |
-
"post_processor": null,
|
| 39 |
-
"decoder": null,
|
| 40 |
-
"model": {
|
| 41 |
-
"type": "BPE",
|
| 42 |
-
"dropout": null,
|
| 43 |
-
"unk_token": "<|endoftext|>",
|
| 44 |
-
"continuing_subword_prefix": null,
|
| 45 |
-
"end_of_word_suffix": null,
|
| 46 |
-
"fuse_unk": false,
|
| 47 |
-
"byte_fallback": false,
|
| 48 |
-
"ignore_merges": false,
|
| 49 |
-
"vocab": {},
|
| 50 |
-
"merges": []
|
| 51 |
-
}
|
| 52 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|