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)# 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
Commit History
-
Update README.md
10cd9fc
-
Update README.md
5316dfc
-
Upload tokenizer
f42707a -
Upload LlamaForCausalLM
85a9dc9 -
Model save
0f3638b -
Training in progress, step 1600, checkpoint
269a4f3 -
Training in progress, step 1600
f50f947 -
Training in progress, step 1500, checkpoint
6929b5d -
Training in progress, step 1500
7580ed4 -
Training in progress, step 1400, checkpoint
7563115 -
Training in progress, step 1400
310f260 -
Training in progress, step 1300, checkpoint
4b1ae24 -
Training in progress, step 1300
fec110c
-
Training in progress, step 1200, checkpoint
22d3e7d -
Training in progress, step 1200
b07ee79 -
Training in progress, step 1100, checkpoint
101cfc2 -
Training in progress, step 1100
e9102f8 -
Training in progress, step 1000, checkpoint
3adffb6 -
Training in progress, step 1000
43e4f1b -
Training in progress, step 900, checkpoint
d3ccef0 -
Training in progress, step 900
c01762b -
Training in progress, step 800, checkpoint
32d1526 -
Training in progress, step 800
a134636 -
Training in progress, step 700, checkpoint
2e2ce76 -
Training in progress, step 700
a4e84a0 -
Training in progress, step 600, checkpoint
c1a6727 -
Training in progress, step 600
dc5c4d2 -
Training in progress, step 500, checkpoint
f788d81 -
Training in progress, step 500
9f20e57 -
Training in progress, step 400, checkpoint
cdecb83 -
Training in progress, step 400
61b315a -
Training in progress, step 300, checkpoint
9ff22b6 -
Training in progress, step 300
9c22d11 -
Training in progress, step 200, checkpoint
a7815df -
Training in progress, step 200
effeca5
-
Training in progress, step 100, checkpoint
8def723 -
Training in progress, step 100
6adc79c -
initial commit
b194333