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