Text Generation
Transformers
TensorBoard
Safetensors
llama
Generated from Trainer
custom_code
text-generation-inference
Run this model with HF Jobs
Run flytech/togetherchat-dev-7b 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. 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 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. 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. 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 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flytech/togetherchat-dev-7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="flytech/togetherchat-dev-7b", 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", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("flytech/togetherchat-dev-7b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use flytech/togetherchat-dev-7b 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" # 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", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/flytech/togetherchat-dev-7b
- SGLang
How to use flytech/togetherchat-dev-7b 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" \ --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", "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" \ --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", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use flytech/togetherchat-dev-7b with Docker Model Runner:
docker model run hf.co/flytech/togetherchat-dev-7b
Training in progress, step 120
Browse filesFiles changed (3)
123version https://git-lfs.github.com/spec/v1oid sha256:388e352e490c7c07c63732e2b742baa0a969730393d5a2bf201812e0b31feda9size 40036040123version https://git-lfs.github.com/spec/v1oid sha256:f69bce4cc58bbdb4323c3c3550fa2115444ee354e82ae39b92b8d8905afca073size 40036040
123version https://git-lfs.github.com/spec/v1oid sha256:e183e89bfa8dd806a6935add39869b3f3b383fd427e5f514ecb621de7cc5addcsize 5038123version https://git-lfs.github.com/spec/v1oid sha256:b4323968b4bcb3fefba6fc23311032e9b72b54c51ce67e5f1d0d656e89ce3441size 5411
123version https://git-lfs.github.com/spec/v1oid sha256:021c98672563e062b7d953ddaa8dd211951df8735eb505f589d11c5c9d8813d3size 5038123version https://git-lfs.github.com/spec/v1oid sha256:593873e6358cafd4ec6826a169df4cebb18f70cebbd964bf8b872362280b9b87size 5411
adapter_model.safetensors+1-1
events.out.tfevents.1694221912.f3a14596601b.285.0+2-2
events.out.tfevents.1694221912.f3a14596601b.285.1+2-2