Add LICENSE and NOTICE files for license compliance 42311e2
hanzo-dev commited on
How to use zenlm/zen-reranker-8B with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="zenlm/zen-reranker-8B") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("zenlm/zen-reranker-8B")
model = AutoModelForCausalLM.from_pretrained("zenlm/zen-reranker-8B", device_map="auto")