Text Generation
Transformers
Safetensors
English
mistral
Eval Results (legacy)
text-generation-inference
Instructions to use senseable/WestLake-7B-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use senseable/WestLake-7B-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="senseable/WestLake-7B-v2")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("senseable/WestLake-7B-v2") model = AutoModelForCausalLM.from_pretrained("senseable/WestLake-7B-v2") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use senseable/WestLake-7B-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "senseable/WestLake-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": "senseable/WestLake-7B-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/senseable/WestLake-7B-v2
- SGLang
How to use senseable/WestLake-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 "senseable/WestLake-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": "senseable/WestLake-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 "senseable/WestLake-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": "senseable/WestLake-7B-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use senseable/WestLake-7B-v2 with Docker Model Runner:
docker model run hf.co/senseable/WestLake-7B-v2
A consideration for your next model
#23 opened over 1 year ago
by
Coxmix
Base model metadata
#22 opened almost 2 years ago
by
Stark2008
senseable/WestLake-7B-v2 data format
#20 opened about 2 years ago
by
asadhugging
Russian words in output
3
#18 opened about 2 years ago
by
syf97
WestLake-7B-v2_wikitext-2-raw.imatrix
#17 opened about 2 years ago
by
Joseph717171
Adding Evaluation Results
#16 opened about 2 years ago
by
leaderboard-pr-bot
Adding Evaluation Results
#15 opened about 2 years ago
by
leaderboard-pr-bot
Impressive...
9
#13 opened about 2 years ago
by
ChuckMcSneed
Amazing model, and this (the original) is better than laser or dpo versions
👍❤️ 1
3
#11 opened over 2 years ago
by
froggeric
context?
👍 1
1
#10 opened over 2 years ago
by
cognitivetech
Here just to say: 🌟Radiant Kudos for your marvelous Model senseable!
❤️ 4
#9 opened over 2 years ago
by
Humus
Will there be a space for this model?
#7 opened over 2 years ago
by
dragonoid
Any GGUF versions for this model?
4
#4 opened over 2 years ago
by
krigeta
just curious
3
#3 opened over 2 years ago
by
ddh0
Dataset
👍 1
1
#2 opened over 2 years ago
by
ehartford
Chat template
11
#1 opened over 2 years ago
by
ehartford