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", 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]:])) - 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
Actualización del modelo checkpoint-7500
Browse files- model.safetensors +1 -1
- optimizer.pt +1 -1
- rng_state.pth +1 -1
- scheduler.pt +1 -1
- trainer_state.json +24 -3
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 441688704
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0eab42afbe7426243ce2d1ba6d75bee3824af2608b6de41071a84386819d212
|
| 3 |
size 441688704
|
optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 883471290
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:17ac4342be3e5e9c64cccffd26a9b64e7ba43b1a71341df9c15fcdb95bfdc8c6
|
| 3 |
size 883471290
|
rng_state.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 14244
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1fa65d50f300351e16710ce6fdba2dfa9ec2f3bdf289c24ec5e16f4d3b6df252
|
| 3 |
size 14244
|
scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1064
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c3cb4a4f1b4e6790e05db05fba5f2ecb9a205991b4a9dda8eb6e91346526cb8c
|
| 3 |
size 1064
|
trainer_state.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
-
"epoch": 0.
|
| 5 |
"eval_steps": 500,
|
| 6 |
-
"global_step":
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
@@ -91,6 +91,27 @@
|
|
| 91 |
"learning_rate": 0.000593235766021606,
|
| 92 |
"loss": 1.2326,
|
| 93 |
"step": 6000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
}
|
| 95 |
],
|
| 96 |
"logging_steps": 500,
|
|
@@ -110,7 +131,7 @@
|
|
| 110 |
"attributes": {}
|
| 111 |
}
|
| 112 |
},
|
| 113 |
-
"total_flos": 1.
|
| 114 |
"train_batch_size": 32,
|
| 115 |
"trial_name": null,
|
| 116 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 0.1228803145736053,
|
| 5 |
"eval_steps": 500,
|
| 6 |
+
"global_step": 7500,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 91 |
"learning_rate": 0.000593235766021606,
|
| 92 |
"loss": 1.2326,
|
| 93 |
"step": 6000
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"epoch": 0.10649627263045794,
|
| 97 |
+
"grad_norm": 0.15231232345104218,
|
| 98 |
+
"learning_rate": 0.000591446651015159,
|
| 99 |
+
"loss": 1.2247,
|
| 100 |
+
"step": 6500
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"epoch": 0.11468829360203162,
|
| 104 |
+
"grad_norm": 0.14419229328632355,
|
| 105 |
+
"learning_rate": 0.0005894512099580222,
|
| 106 |
+
"loss": 1.2203,
|
| 107 |
+
"step": 7000
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"epoch": 0.1228803145736053,
|
| 111 |
+
"grad_norm": 0.1426558941602707,
|
| 112 |
+
"learning_rate": 0.0005872508554980035,
|
| 113 |
+
"loss": 1.2077,
|
| 114 |
+
"step": 7500
|
| 115 |
}
|
| 116 |
],
|
| 117 |
"logging_steps": 500,
|
|
|
|
| 131 |
"attributes": {}
|
| 132 |
}
|
| 133 |
},
|
| 134 |
+
"total_flos": 1.2542017536e+17,
|
| 135 |
"train_batch_size": 32,
|
| 136 |
"trial_name": null,
|
| 137 |
"trial_params": null
|