Text Generation
Transformers
Safetensors
qwen2
llama-factory
Generated from Trainer
conversational
text-generation-inference
Instructions to use AQuarterMile/WritingBench-Critic-Model-Qwen-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AQuarterMile/WritingBench-Critic-Model-Qwen-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AQuarterMile/WritingBench-Critic-Model-Qwen-7B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AQuarterMile/WritingBench-Critic-Model-Qwen-7B") model = AutoModelForCausalLM.from_pretrained("AQuarterMile/WritingBench-Critic-Model-Qwen-7B", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AQuarterMile/WritingBench-Critic-Model-Qwen-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AQuarterMile/WritingBench-Critic-Model-Qwen-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AQuarterMile/WritingBench-Critic-Model-Qwen-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AQuarterMile/WritingBench-Critic-Model-Qwen-7B
- SGLang
How to use AQuarterMile/WritingBench-Critic-Model-Qwen-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 "AQuarterMile/WritingBench-Critic-Model-Qwen-7B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AQuarterMile/WritingBench-Critic-Model-Qwen-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "AQuarterMile/WritingBench-Critic-Model-Qwen-7B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AQuarterMile/WritingBench-Critic-Model-Qwen-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use AQuarterMile/WritingBench-Critic-Model-Qwen-7B with Docker Model Runner:
docker model run hf.co/AQuarterMile/WritingBench-Critic-Model-Qwen-7B
Commit History
-
Upload special_tokens_map.json with huggingface_hub
Verified signaturefb5f30a -
Upload vocab.json with huggingface_hub
Verified signaturef654c90 -
Upload tokenizer.json with huggingface_hub
Verified signature4a8daed -
Upload tokenizer_config.json with huggingface_hub
Verified signature2ea6b72 -
Upload merges.txt with huggingface_hub
Verified signature80bcd94 -
Upload model.safetensors.index.json with huggingface_hub
Verified signature6483b4e -
Upload generation_config.json with huggingface_hub
Verified signature215f5ca -
Upload config.json with huggingface_hub
Verified signatured7179e5 -
Upload special_tokens_map.json with huggingface_hub
Verified signatured0a4b88 -
Upload model-00004-of-00004.safetensors with huggingface_hub
Verified signatureecc9f99 -
Upload model-00003-of-00004.safetensors with huggingface_hub
Verified signature43136c5 -
Upload model-00002-of-00004.safetensors with huggingface_hub
Verified signaturefb1abd2 -
Upload model-00001-of-00004.safetensors with huggingface_hub
Verified signature820cff7 -
Upload vocab.json with huggingface_hub
Verified signature62637f6 -
Upload tokenizer.json with huggingface_hub
Verified signature7a46ea6 -
Upload tokenizer_config.json with huggingface_hub
Verified signature8251201 -
Upload merges.txt with huggingface_hub
Verified signature4630c09 -
Upload model.safetensors.index.json with huggingface_hub
Verified signature3e1c059 -
Upload generation_config.json with huggingface_hub
Verified signature5c9cd0e -
Upload config.json with huggingface_hub
Verified signature0344294 -
Upload vocab.json with huggingface_hub
Verified signature760fa59 -
Upload tokenizer.json with huggingface_hub
Verified signature8b5ebe9 -
Upload tokenizer_config.json with huggingface_hub
Verified signatureb77d97a -
Upload merges.txt with huggingface_hub
Verified signaturebadead4 -
Upload model.safetensors.index.json with huggingface_hub
Verified signature570aee4 -
Upload generation_config.json with huggingface_hub
Verified signaturee342ef7 -
Upload config.json with huggingface_hub
Verified signature91b5f7a
-
Update README.md
Verified signature3dc7690
-
Update README.md
Verified signaturefabdc9d -
Add pipeline tag: text-generation (#1)
Verified signature- Add pipeline tag: text-generation (a77f3b60ffc14b1002b30d33db0cff587c533f71) Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>fbeb159
-
Update README.md
Verified signature9673942 -
Update README.md
Verified signature44a1934 -
Update README.md
Verified signaturee5b39c3 -
Upload special_tokens_map.json with huggingface_hub
Verified signature77a4f2c -
Update README.md
Verified signature92e38eb -
Upload model-00004-of-00004.safetensors with huggingface_hub
Verified signature67bcdd2 -
Upload model-00003-of-00004.safetensors with huggingface_hub
Verified signature590373d -
Upload model-00002-of-00004.safetensors with huggingface_hub
Verified signatureea1d48a -
Upload model-00001-of-00004.safetensors with huggingface_hub
Verified signature3e1c471 -
Upload LICENSE.txt with huggingface_hub
Verified signature1ef20ad -
Upload README.md with huggingface_hub
Verified signature1521a53 -
Upload vocab.json with huggingface_hub
Verified signaturebd91e31 -
Upload tokenizer.json with huggingface_hub
Verified signature49fb799 -
Upload tokenizer_config.json with huggingface_hub
Verified signature2520683 -
Upload merges.txt with huggingface_hub
Verified signature7b05ace -
Upload model.safetensors.index.json with huggingface_hub
Verified signature8ba5c90 -
Upload generation_config.json with huggingface_hub
Verified signature5955883 -
Upload config.json with huggingface_hub
Verified signature60ab361 -
initial commit
Verified signaturedcc1a25