Instructions to use CLMBR/full-transformer-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CLMBR/full-transformer-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CLMBR/full-transformer-1")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CLMBR/full-transformer-1") model = AutoModelForCausalLM.from_pretrained("CLMBR/full-transformer-1") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use CLMBR/full-transformer-1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CLMBR/full-transformer-1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CLMBR/full-transformer-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CLMBR/full-transformer-1
- SGLang
How to use CLMBR/full-transformer-1 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 "CLMBR/full-transformer-1" \ --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": "CLMBR/full-transformer-1", "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 "CLMBR/full-transformer-1" \ --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": "CLMBR/full-transformer-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use CLMBR/full-transformer-1 with Docker Model Runner:
docker model run hf.co/CLMBR/full-transformer-1
Training in progress, epoch 0, checkpoint
Browse files- checkpoint-2060640/config.json +28 -0
- checkpoint-2060640/generation_config.json +7 -0
- checkpoint-2060640/optimizer.pt +3 -0
- checkpoint-2060640/pytorch_model.bin +3 -0
- checkpoint-2060640/rng_state.pth +3 -0
- checkpoint-2060640/scheduler.pt +3 -0
- checkpoint-2060640/special_tokens_map.json +5 -0
- checkpoint-2060640/tokenizer.json +0 -0
- checkpoint-2060640/tokenizer_config.json +12 -0
- checkpoint-2060640/trainer_state.json +0 -0
- checkpoint-2060640/training_args.bin +3 -0
checkpoint-2060640/config.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_remove_final_layer_norm": false,
|
| 3 |
+
"activation_function": "relu",
|
| 4 |
+
"architectures": [
|
| 5 |
+
"OPTForCausalLM"
|
| 6 |
+
],
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
+
"bos_token_id": 2,
|
| 9 |
+
"do_layer_norm_before": true,
|
| 10 |
+
"dropout": 0.1,
|
| 11 |
+
"enable_bias": true,
|
| 12 |
+
"eos_token_id": 2,
|
| 13 |
+
"ffn_dim": 768,
|
| 14 |
+
"hidden_size": 768,
|
| 15 |
+
"init_std": 0.02,
|
| 16 |
+
"layer_norm_elementwise_affine": true,
|
| 17 |
+
"layerdrop": 0.0,
|
| 18 |
+
"max_position_embeddings": 512,
|
| 19 |
+
"model_type": "opt",
|
| 20 |
+
"num_attention_heads": 8,
|
| 21 |
+
"num_hidden_layers": 8,
|
| 22 |
+
"pad_token_id": 1,
|
| 23 |
+
"torch_dtype": "float32",
|
| 24 |
+
"transformers_version": "4.33.3",
|
| 25 |
+
"use_cache": true,
|
| 26 |
+
"vocab_size": 50002,
|
| 27 |
+
"word_embed_proj_dim": 768
|
| 28 |
+
}
|
checkpoint-2060640/generation_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 2,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"pad_token_id": 1,
|
| 6 |
+
"transformers_version": "4.33.3"
|
| 7 |
+
}
|
checkpoint-2060640/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cb0b6aa95ed2d6c63a0eb83356ed8e32b501f275049fc14338a7ec216888d44b
|
| 3 |
+
size 537476677
|
checkpoint-2060640/pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:636b4fb7cc2d5202b622273759cefe22cbbc0a3245bc90e91934054f10a2dcdd
|
| 3 |
+
size 268727709
|
checkpoint-2060640/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b5d1f47c639988bda55152b72072c3e06c25ccc7e52418419b8f1d428a044432
|
| 3 |
+
size 14575
|
checkpoint-2060640/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3fc34bde17e3e483206806bd13e5813b849dd2c6d88965626a6662a93f122fa0
|
| 3 |
+
size 627
|
checkpoint-2060640/special_tokens_map.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"eos_token": "<eos>",
|
| 3 |
+
"pad_token": "<pad>",
|
| 4 |
+
"unk_token": "<unk>"
|
| 5 |
+
}
|
checkpoint-2060640/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-2060640/tokenizer_config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"clean_up_tokenization_spaces": true,
|
| 3 |
+
"eos_token": "<eos>",
|
| 4 |
+
"max_length": null,
|
| 5 |
+
"model_max_length": 512,
|
| 6 |
+
"pad_to_multiple_of": null,
|
| 7 |
+
"pad_token": "<pad>",
|
| 8 |
+
"pad_token_type_id": 0,
|
| 9 |
+
"padding_side": "right",
|
| 10 |
+
"tokenizer_class": "PreTrainedTokenizerFast",
|
| 11 |
+
"unk_token": "<unk>"
|
| 12 |
+
}
|
checkpoint-2060640/trainer_state.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-2060640/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5d9127f65888bcea30e12e6b45cd0c75570ed12f2b281728b1f9b0635b59d9fb
|
| 3 |
+
size 4219
|