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 1000, 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:f00956cad5b242d28d69ef7f923e91b71ba0e20a0414975ebf772dd8e9f57161
|
| 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 21689885
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57a9fdefbec929aa5b96d3138d9e4e530cab3e268afb55db0aaf843cc8c9e4c9
|
| 3 |
size 21689885
|
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:4907f2830ba6f2777cd22e1a2deb95c664e378deb1ca91ebe14c24ed9b4dbb72
|
| 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:a1969c6d78c022e21e37f015f4d4c5f85f6638038ce809e096a3a6a48192ec9d
|
| 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": 1.
|
| 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,
|
|
@@ -124,13 +124,26 @@
|
|
| 124 |
"eval_samples_per_second": 1.782,
|
| 125 |
"eval_steps_per_second": 0.223,
|
| 126 |
"step": 900
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
}
|
| 128 |
],
|
| 129 |
"logging_steps": 100,
|
| 130 |
"max_steps": 1686,
|
| 131 |
"num_train_epochs": 3,
|
| 132 |
"save_steps": 100,
|
| 133 |
-
"total_flos": 3.
|
| 134 |
"trial_name": null,
|
| 135 |
"trial_params": null
|
| 136 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 1.7786666666666666,
|
| 5 |
"eval_steps": 100,
|
| 6 |
+
"global_step": 1000,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 124 |
"eval_samples_per_second": 1.782,
|
| 125 |
"eval_steps_per_second": 0.223,
|
| 126 |
"step": 900
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"epoch": 1.78,
|
| 130 |
+
"learning_rate": 4.5352669742913644e-05,
|
| 131 |
+
"loss": 0.5422,
|
| 132 |
+
"step": 1000
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"epoch": 1.78,
|
| 136 |
+
"eval_runtime": 1405.4811,
|
| 137 |
+
"eval_samples_per_second": 1.779,
|
| 138 |
+
"eval_steps_per_second": 0.223,
|
| 139 |
+
"step": 1000
|
| 140 |
}
|
| 141 |
],
|
| 142 |
"logging_steps": 100,
|
| 143 |
"max_steps": 1686,
|
| 144 |
"num_train_epochs": 3,
|
| 145 |
"save_steps": 100,
|
| 146 |
+
"total_flos": 3.674986443177984e+17,
|
| 147 |
"trial_name": null,
|
| 148 |
"trial_params": null
|
| 149 |
}
|
last-checkpoint/training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4027
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b70405a73c4fcdb106d1d45a297270d5842bf95dec19efac48fa6e39c2b6cac8
|
| 3 |
size 4027
|