Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
llama
Generated from Trainer
custom_code
text-generation-inference
Run this model with HF Jobs
Run flytech/togetherchat-dev-7b-v2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/flytech/togetherchat-dev-7b-v2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/flytech/togetherchat-dev-7b-v2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/flytech/togetherchat-dev-7b-v2. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/flytech/togetherchat-dev-7b-v2. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
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)# pip install -U transformers accelerate # 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, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- 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 900, checkpoint
Browse filesFiles changed (5)
123version https://git-lfs.github.com/spec/v1oid sha256:abe1bf17d2c830d3b6c1fefae7af91dc7dfbf1bbe69e8797f01623084fb00dfcsize 40036040123version https://git-lfs.github.com/spec/v1oid sha256:7928893400b46dcb29642a403c24b8f22b024fddc25b60538a31c85c1ad8865bsize 40036040
123version https://git-lfs.github.com/spec/v1oid sha256:2b4db910e4f4b09662424d25772c11728468d1ab1a6de02a58ce13e664159f8asize 21689885123version https://git-lfs.github.com/spec/v1oid sha256:1086fe9363f82aec5d220614e79a6fc2421d31fe34ca1c9fa9612a1c28fc43basize 21689885
123version https://git-lfs.github.com/spec/v1oid sha256:12574d8d1395ea85b59ecf9d193de877adf1de4ad027b7e75e021b6803126718size 14575123version https://git-lfs.github.com/spec/v1oid sha256:9c31fdd7bc052e2da00f42fa4208407109642b65360d36af47981ba37b94fb7bsize 14575
123version https://git-lfs.github.com/spec/v1oid sha256:6bf7401d3bff0b343fef70975b8b910805ada55675fd63bf769da9640a3e5c96size 627123version https://git-lfs.github.com/spec/v1oid sha256:41ec64ba9e76742780de858ce14668285049f1680bae66c1352aa2d20d3be491size 627
123456789101 unmodified lines111112113114115116117118119120121122123{"best_metric": null,"best_model_checkpoint": null,"epoch": 1.4222222222222223,"eval_steps": 100,"global_step": 800,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,101 unmodified lines"eval_samples_per_second": 1.779,"eval_steps_per_second": 0.223,"step": 800}],"logging_steps": 100,"max_steps": 1686,"num_train_epochs": 3,"save_steps": 100,"total_flos": 2.844481032290304e+17,"trial_name": null,"trial_params": null}123456789101 unmodified lines111112113114115116117118119120121122123124125126127128129130131132133134135136{"best_metric": null,"best_model_checkpoint": null,"epoch": 1.6,"eval_steps": 100,"global_step": 900,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,101 unmodified lines"eval_samples_per_second": 1.779,"eval_steps_per_second": 0.223,"step": 800},{"epoch": 1.6,"learning_rate": 0.0001,"loss": 0.5724,"step": 900},{"epoch": 1.6,"eval_runtime": 1402.9928,"eval_samples_per_second": 1.782,"eval_steps_per_second": 0.223,"step": 900}],"logging_steps": 100,"max_steps": 1686,"num_train_epochs": 3,"save_steps": 100,"total_flos": 3.259733737734144e+17,"trial_name": null,"trial_params": null}
last-checkpoint/adapter_model.safetensors+1-1
last-checkpoint/optimizer.pt+1-1
last-checkpoint/rng_state.pth+1-1
last-checkpoint/scheduler.pt+1-1
last-checkpoint/trainer_state.json+16-3