Instructions to use GItaf/bert2bert-with-cross-attn-decoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GItaf/bert2bert-with-cross-attn-decoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="GItaf/bert2bert-with-cross-attn-decoder")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("GItaf/bert2bert-with-cross-attn-decoder") model = AutoModelForCausalLM.from_pretrained("GItaf/bert2bert-with-cross-attn-decoder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use GItaf/bert2bert-with-cross-attn-decoder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GItaf/bert2bert-with-cross-attn-decoder" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GItaf/bert2bert-with-cross-attn-decoder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/GItaf/bert2bert-with-cross-attn-decoder
- SGLang
How to use GItaf/bert2bert-with-cross-attn-decoder 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 "GItaf/bert2bert-with-cross-attn-decoder" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GItaf/bert2bert-with-cross-attn-decoder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "GItaf/bert2bert-with-cross-attn-decoder" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GItaf/bert2bert-with-cross-attn-decoder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use GItaf/bert2bert-with-cross-attn-decoder with Docker Model Runner:
docker model run hf.co/GItaf/bert2bert-with-cross-attn-decoder
Training in progress, epoch 11
Browse files- all_results.json +8 -0
- pytorch_model.bin +1 -1
- train_results.json +8 -0
- training_args.bin +1 -1
all_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 10.0,
|
| 3 |
+
"total_flos": 2.4440047552512e+16,
|
| 4 |
+
"train_loss": 0.0,
|
| 5 |
+
"train_runtime": 0.0636,
|
| 6 |
+
"train_samples_per_second": 1090977.125,
|
| 7 |
+
"train_steps_per_second": 272744.281
|
| 8 |
+
}
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 554035445
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0f58bb512afcdbc0c8cbd8e20c483b83728b1d07f09ba986d16af01da66cbfc
|
| 3 |
size 554035445
|
train_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 10.0,
|
| 3 |
+
"total_flos": 2.4440047552512e+16,
|
| 4 |
+
"train_loss": 0.0,
|
| 5 |
+
"train_runtime": 0.0636,
|
| 6 |
+
"train_samples_per_second": 1090977.125,
|
| 7 |
+
"train_steps_per_second": 272744.281
|
| 8 |
+
}
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3375
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d694c0b87e45ccc36699fdf033069525d828862e9bd1d8608b68d4db28a59099
|
| 3 |
size 3375
|