Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
conversational
text-generation-inference
Instructions to use tytodd/arbor-test-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tytodd/arbor-test-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tytodd/arbor-test-2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("tytodd/arbor-test-2") model = AutoModelForCausalLM.from_pretrained("tytodd/arbor-test-2") 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 tytodd/arbor-test-2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tytodd/arbor-test-2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tytodd/arbor-test-2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tytodd/arbor-test-2
- SGLang
How to use tytodd/arbor-test-2 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 "tytodd/arbor-test-2" \ --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": "tytodd/arbor-test-2", "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 "tytodd/arbor-test-2" \ --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": "tytodd/arbor-test-2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use tytodd/arbor-test-2 with Docker Model Runner:
docker model run hf.co/tytodd/arbor-test-2
model_checkpoint_test
Browse files
model_checkpoint_test/metadata.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"score": 0.0,
|
| 3 |
+
"step_index": 0
|
| 4 |
+
}
|
model_checkpoint_test/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:426c65fe6efafe9122c6f867160776c5ab9ca0fabf89c01b69ee9de1eb034124
|
| 3 |
+
size 2297
|
model_checkpoint_test/rng_state.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 14645
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:098b29492211804ab324a36f37466821d948280bb74fce4ba895c03f13ecd878
|
| 3 |
size 14645
|
model_checkpoint_test/scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1465
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:24ea0cb7b47f612954454da2a06d80c327ff664c0beff3af56cbb5de08d2b6ab
|
| 3 |
size 1465
|
model_checkpoint_test/trainer_state.json
CHANGED
|
@@ -1,41 +1,17 @@
|
|
| 1 |
{
|
| 2 |
"best_global_step": null,
|
| 3 |
"best_metric": null,
|
| 4 |
-
"best_model_checkpoint":
|
| 5 |
-
"epoch": 0
|
| 6 |
"eval_steps": 500,
|
| 7 |
-
"global_step":
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
| 11 |
-
"log_history": [
|
| 12 |
-
{
|
| 13 |
-
"clip_ratio/high_max": 0.0,
|
| 14 |
-
"clip_ratio/high_mean": 0.0,
|
| 15 |
-
"clip_ratio/low_mean": 0.0,
|
| 16 |
-
"clip_ratio/low_min": 0.0,
|
| 17 |
-
"clip_ratio/region_mean": 0.0,
|
| 18 |
-
"completions/clipped_ratio": 0.0,
|
| 19 |
-
"completions/max_length": 4.0,
|
| 20 |
-
"completions/max_terminated_length": 4.0,
|
| 21 |
-
"completions/mean_length": 4.0,
|
| 22 |
-
"completions/mean_terminated_length": 4.0,
|
| 23 |
-
"completions/min_length": 4.0,
|
| 24 |
-
"completions/min_terminated_length": 4.0,
|
| 25 |
-
"epoch": 0.15873015873015872,
|
| 26 |
-
"grad_norm": 0.0,
|
| 27 |
-
"kl": 0.0,
|
| 28 |
-
"learning_rate": 9e-07,
|
| 29 |
-
"loss": 0.0,
|
| 30 |
-
"num_tokens": 4960.0,
|
| 31 |
-
"reward": -1.0,
|
| 32 |
-
"reward_std": 0.0,
|
| 33 |
-
"step": 10
|
| 34 |
-
}
|
| 35 |
-
],
|
| 36 |
"logging_steps": 10,
|
| 37 |
"max_steps": 500,
|
| 38 |
-
"num_input_tokens_seen":
|
| 39 |
"num_train_epochs": 8,
|
| 40 |
"save_steps": 500,
|
| 41 |
"stateful_callbacks": {
|
|
@@ -50,7 +26,7 @@
|
|
| 50 |
"attributes": {}
|
| 51 |
}
|
| 52 |
},
|
| 53 |
-
"total_flos": 0
|
| 54 |
"train_batch_size": 8,
|
| 55 |
"trial_name": null,
|
| 56 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_global_step": null,
|
| 3 |
"best_metric": null,
|
| 4 |
+
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 0,
|
| 6 |
"eval_steps": 500,
|
| 7 |
+
"global_step": 0,
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
"logging_steps": 10,
|
| 13 |
"max_steps": 500,
|
| 14 |
+
"num_input_tokens_seen": 0,
|
| 15 |
"num_train_epochs": 8,
|
| 16 |
"save_steps": 500,
|
| 17 |
"stateful_callbacks": {
|
|
|
|
| 26 |
"attributes": {}
|
| 27 |
}
|
| 28 |
},
|
| 29 |
+
"total_flos": 0,
|
| 30 |
"train_batch_size": 8,
|
| 31 |
"trial_name": null,
|
| 32 |
"trial_params": null
|
model_checkpoint_test/training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1358766191dc7baee28883479e004089c478ffe01eb8a1acb403a49ca49b1358
|
| 3 |
+
size 7697
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1358766191dc7baee28883479e004089c478ffe01eb8a1acb403a49ca49b1358
|
| 3 |
+
size 7697
|