Text Generation
Transformers
Safetensors
Chinese
English
llama
chat
evaluate
GenRM
text-generation-inference
Instructions to use FlagEval/flageval_judgemodel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FlagEval/flageval_judgemodel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FlagEval/flageval_judgemodel")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("FlagEval/flageval_judgemodel") model = AutoModelForCausalLM.from_pretrained("FlagEval/flageval_judgemodel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use FlagEval/flageval_judgemodel with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FlagEval/flageval_judgemodel" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FlagEval/flageval_judgemodel", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/FlagEval/flageval_judgemodel
- SGLang
How to use FlagEval/flageval_judgemodel 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 "FlagEval/flageval_judgemodel" \ --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": "FlagEval/flageval_judgemodel", "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 "FlagEval/flageval_judgemodel" \ --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": "FlagEval/flageval_judgemodel", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use FlagEval/flageval_judgemodel with Docker Model Runner:
docker model run hf.co/FlagEval/flageval_judgemodel
[WIP] Upload folder using huggingface_hub (multi-commit be7b2e993a25946bc4eed61be65cc5e5c06d4711088ce0f869def2e13e099da8)
#2
by eyuansu71 - opened
Upload folder using huggingface_hub
Multi commit ID: be7b2e993a25946bc4eed61be65cc5e5c06d4711088ce0f869def2e13e099da8
Scheduled commits:
- Upload 1 file(s) totalling 9.8G (b6131ce31e4f176fc5e921904634cd3695ad491bf1c7a7743562f87d2ec8a3ef)
- Upload 1 file(s) totalling 10.0G (8eb29600f2c88b726611414dd1aa29c9e42ce87402f3b6b4301a6f58e06203ca)
- Upload 1 file(s) totalling 9.9G (e9c455429886cad15da9851f8117caefb764c746b19ef478b944655cef03acd8)
- Upload 1 file(s) totalling 9.9G (87deb0e6e131128620a551a47776195d6d46138d1f5f58e33e4168c76f7aa9fa)
- Upload 1 file(s) totalling 9.9G (67a949f6e539bdfef291bcc7f23e4748b527ec89fbf8b280c1efbe6dcdbecc38)
- Upload 1 file(s) totalling 10.0G (76b02c74492d703f9e732b47ff9adaef0f812edac11d6dff2f06d38917166728)
- Upload 1 file(s) totalling 5.7G (b402d8552118a8744d7dcd8c8abdaa9d4e35dc21cc2925b85e78d7b90299c42d)
- Upload 3 file(s) totalling 45.7K (d75091461eb2abcad3d6d2f7c65e3882cc5582139ddbd9a159688223b00112cf)
This is a PR opened using the huggingface_hub library in the context of a multi-commit. PR can be commented as a usual PR. However, please be aware that manually updating the PR description, changing the PR status, or pushing new commits, is not recommended as it might corrupt the commit process. Learn more about multi-commits in this guide.