Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
llama
Generated from Trainer
custom_code
text-generation-inference
Instructions to use flytech/togetherchat-dev-7b-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flytech/togetherchat-dev-7b-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="flytech/togetherchat-dev-7b-v2", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("flytech/togetherchat-dev-7b-v2", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("flytech/togetherchat-dev-7b-v2", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use flytech/togetherchat-dev-7b-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "flytech/togetherchat-dev-7b-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "flytech/togetherchat-dev-7b-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/flytech/togetherchat-dev-7b-v2
- SGLang
How to use flytech/togetherchat-dev-7b-v2 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 "flytech/togetherchat-dev-7b-v2" \ --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": "flytech/togetherchat-dev-7b-v2", "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 "flytech/togetherchat-dev-7b-v2" \ --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": "flytech/togetherchat-dev-7b-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use flytech/togetherchat-dev-7b-v2 with Docker Model Runner:
docker model run hf.co/flytech/togetherchat-dev-7b-v2
Training in progress, step 200, checkpoint
Browse files
last-checkpoint/adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 40036040
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c3b1c01867a48426d38db37187f106d9c7810f530be6609a241a6e6021467fd4
|
| 3 |
size 40036040
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 20523679
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6fc1965fb433560938e542bfe0d09ce31350aa8612c88590e705489ebb112b3e
|
| 3 |
size 20523679
|
last-checkpoint/rng_state.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 14575
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:710c889a77c83f4c6fffb8635fc1862345ef442ec4495d02dff8ccb91668743c
|
| 3 |
size 14575
|
last-checkpoint/scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 627
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f9020e028c1e129dd39e020e7970aa41817c4a19359ef6ece1698c88c7c15de
|
| 3 |
size 627
|
last-checkpoint/trainer_state.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
-
"epoch": 0.
|
| 5 |
"eval_steps": 100,
|
| 6 |
-
"global_step":
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
@@ -20,13 +20,26 @@
|
|
| 20 |
"eval_samples_per_second": 1.776,
|
| 21 |
"eval_steps_per_second": 0.222,
|
| 22 |
"step": 100
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
}
|
| 24 |
],
|
| 25 |
"logging_steps": 100,
|
| 26 |
"max_steps": 2109,
|
| 27 |
"num_train_epochs": 3,
|
| 28 |
"save_steps": 100,
|
| 29 |
-
"total_flos":
|
| 30 |
"trial_name": null,
|
| 31 |
"trial_params": null
|
| 32 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 0.28439388553146105,
|
| 5 |
"eval_steps": 100,
|
| 6 |
+
"global_step": 200,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 20 |
"eval_samples_per_second": 1.776,
|
| 21 |
"eval_steps_per_second": 0.222,
|
| 22 |
"step": 100
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"epoch": 0.28,
|
| 26 |
+
"learning_rate": 0.0001,
|
| 27 |
+
"loss": 0.6611,
|
| 28 |
+
"step": 200
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"epoch": 0.28,
|
| 32 |
+
"eval_runtime": 1407.4105,
|
| 33 |
+
"eval_samples_per_second": 1.776,
|
| 34 |
+
"eval_steps_per_second": 0.222,
|
| 35 |
+
"step": 200
|
| 36 |
}
|
| 37 |
],
|
| 38 |
"logging_steps": 100,
|
| 39 |
"max_steps": 2109,
|
| 40 |
"num_train_epochs": 3,
|
| 41 |
"save_steps": 100,
|
| 42 |
+
"total_flos": 6.64404328710144e+16,
|
| 43 |
"trial_name": null,
|
| 44 |
"trial_params": null
|
| 45 |
}
|