Text Generation
Transformers
TensorBoard
Safetensors
llama
Generated from Trainer
custom_code
text-generation-inference
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
Commit History
-
Update README.md
4d8b599 -
Update README.md
725edc8 -
Upload tokenizer
60e2f81 -
togetherchat-dev-7b
2c375eb -
togetherchat-dev-7b
82bb592 -
Model save
86cdfa1 -
Model save
6265f5f -
Training in progress, step 960, checkpoint
876350d -
Training in progress, step 960
13288e7 -
Training in progress, step 900, checkpoint
1755093 -
Training in progress, step 900
7dbf165 -
Training in progress, step 840, checkpoint
6b9ae0c -
Training in progress, step 840
4fc4cb0 -
Training in progress, step 780, checkpoint
e831b15 -
Training in progress, step 780
172ab19 -
Training in progress, step 720, checkpoint
a0b91f8 -
Training in progress, step 720
9af2681 -
Training in progress, step 660, checkpoint
3ad94a1 -
Training in progress, step 660
0038b38 -
Training in progress, step 600, checkpoint
a7b550d -
Training in progress, step 600
7ce39c1 -
Training in progress, step 540, checkpoint
5a13c3f -
Training in progress, step 540
6e87a84 -
Training in progress, step 480, checkpoint
dc31d96 -
Training in progress, step 480
b109182 -
Training in progress, step 420, checkpoint
beee567 -
Training in progress, step 420
d6d2f8e -
Training in progress, step 360, checkpoint
016dfb7 -
Training in progress, step 360
70f500f -
Training in progress, step 300, checkpoint
39116fb -
Training in progress, step 300
157523f -
Training in progress, step 240, checkpoint
cabc880 -
Training in progress, step 240
a975073 -
Training in progress, step 180, checkpoint
543a42e -
Training in progress, step 180
c81c9f6 -
Training in progress, step 120, checkpoint
9d9ae8e -
Training in progress, step 120
c7cde00 -
Training in progress, step 60, checkpoint
265d0ad -
Training in progress, step 60
0f1c2b6
-
initial commit
2368609