Text Generation
Transformers
Safetensors
English
mistral
mteb
Eval Results (legacy)
text-generation-inference
Run this model with HF Jobs
Run BeastyZ/e5-R-mistral-7b on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/BeastyZ/e5-R-mistral-7b. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/BeastyZ/e5-R-mistral-7b on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/BeastyZ/e5-R-mistral-7b. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/BeastyZ/e5-R-mistral-7b. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use BeastyZ/e5-R-mistral-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BeastyZ/e5-R-mistral-7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BeastyZ/e5-R-mistral-7b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("BeastyZ/e5-R-mistral-7b") model = AutoModelForCausalLM.from_pretrained("BeastyZ/e5-R-mistral-7b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BeastyZ/e5-R-mistral-7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BeastyZ/e5-R-mistral-7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BeastyZ/e5-R-mistral-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/BeastyZ/e5-R-mistral-7b
- SGLang
How to use BeastyZ/e5-R-mistral-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 "BeastyZ/e5-R-mistral-7b" \ --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": "BeastyZ/e5-R-mistral-7b", "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 "BeastyZ/e5-R-mistral-7b" \ --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": "BeastyZ/e5-R-mistral-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use BeastyZ/e5-R-mistral-7b with Docker Model Runner:
docker model run hf.co/BeastyZ/e5-R-mistral-7b
Update README.md
Browse files80 unmodified lines8182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087122 unmodified lines89489589689789889990027 unmodified lines92892993093193293393480 unmodified linestype: Retrieval- dataset:config: defaultname: MTEB CQADupstackAndroidRetrievalrevision: Nonesplit: testtype: mteb/cqadupstack-androidmetrics:- type: map_at_1value: 34.577999999999996- type: map_at_10value: 47.308- type: map_at_100value: 49.014- type: map_at_1000value: 49.126999999999995- type: map_at_3value: 43.4- type: map_at_5value: 45.426- type: mrr_at_1value: 42.632- type: mrr_at_10value: 53.711- type: mrr_at_100value: 54.422000000000004- type: mrr_at_1000value: 54.452- type: mrr_at_3value: 51.097- type: mrr_at_5value: 52.535- type: ndcg_at_1value: 42.632- type: ndcg_at_10value: 54.408- type: ndcg_at_100value: 59.789- type: ndcg_at_1000value: 61.149- type: ndcg_at_3value: 49- type: ndcg_at_5value: 51.141000000000005- type: precision_at_1value: 42.632- type: precision_at_10value: 10.472- type: precision_at_100value: 1.6469999999999998- type: precision_at_1000value: 0.203- type: precision_at_3value: 23.701- type: precision_at_5value: 16.938- type: recall_at_1value: 34.577999999999996- type: recall_at_10value: 67.948- type: recall_at_100value: 89.642- type: recall_at_1000value: 97.597- type: recall_at_3value: 51.381- type: recall_at_5value: 57.855000000000004- type: main_scorevalue: 54.408task:type: Retrieval- dataset:config: defaultname: MTEB CQADupstackEnglishRetrievalrevision: Nonesplit: testtype: mteb/cqadupstack-englishmetrics:- type: map_at_1value: 36.195- type: map_at_10value: 48.433- type: map_at_100value: 49.724000000000004- type: map_at_1000value: 49.842999999999996- type: map_at_3value: 44.940000000000005- type: map_at_5value: 46.992- type: mrr_at_1value: 45.669- type: mrr_at_10value: 54.627- type: mrr_at_100value: 55.186- type: mrr_at_1000value: 55.221- type: mrr_at_3value: 52.282- type: mrr_at_5value: 53.795- type: ndcg_at_1value: 45.669- type: ndcg_at_10value: 54.494- type: ndcg_at_100value: 58.582- type: ndcg_at_1000value: 60.305- type: ndcg_at_3value: 49.978- type: ndcg_at_5value: 52.251999999999995- type: precision_at_1value: 45.669- type: precision_at_10value: 10.255- type: precision_at_100value: 1.582- type: precision_at_1000value: 0.202- type: precision_at_3value: 24.352- type: precision_at_5value: 17.236- type: recall_at_1value: 36.195- type: recall_at_10value: 65.058- type: recall_at_100value: 81.972- type: recall_at_1000value: 92.527- type: recall_at_3value: 51.427- type: recall_at_5value: 57.915000000000006- type: main_scorevalue: 54.494task:type: Retrieval- dataset:config: defaultname: MTEB CQADupstackGamingRetrievalrevision: Nonesplit: testtype: mteb/cqadupstack-gamingmetrics:- type: map_at_1value: 44.521- type: map_at_10value: 58.418000000000006- type: map_at_100value: 59.447- type: map_at_1000value: 59.484- type: map_at_3value: 54.954- type: map_at_5value: 56.940999999999995- type: mrr_at_1value: 51.097- type: mrr_at_10value: 61.751- type: mrr_at_100value: 62.373999999999995- type: mrr_at_1000value: 62.39- type: mrr_at_3value: 59.467000000000006- type: mrr_at_5value: 60.853- type: ndcg_at_1value: 51.097- type: ndcg_at_10value: 64.47699999999999- type: ndcg_at_100value: 68.162- type: ndcg_at_1000value: 68.807- type: ndcg_at_3value: 59.028000000000006- type: ndcg_at_5value: 61.75000000000001- type: precision_at_1value: 51.097- type: precision_at_10value: 10.313- type: precision_at_100value: 1.303- type: precision_at_1000value: 0.13899999999999998- type: precision_at_3value: 26.352999999999998- type: precision_at_5value: 17.931- type: recall_at_1value: 44.521- type: recall_at_10value: 78.81- type: recall_at_100value: 94.12899999999999- type: recall_at_1000value: 98.542- type: recall_at_3value: 64.363- type: recall_at_5value: 71.114- type: main_scorevalue: 64.47699999999999task:type: Retrieval- dataset:config: defaultname: MTEB CQADupstackGisRetrievalrevision: Nonesplit: testtype: mteb/cqadupstack-gismetrics:- type: map_at_1value: 27.913- type: map_at_10value: 37.518- type: map_at_100value: 38.559- type: map_at_1000value: 38.635999999999996- type: map_at_3value: 34.304- type: map_at_5value: 36.142- type: mrr_at_1value: 30.056- type: mrr_at_10value: 39.493- type: mrr_at_100value: 40.411- type: mrr_at_1000value: 40.46- type: mrr_at_3value: 36.629- type: mrr_at_5value: 38.239000000000004- type: ndcg_at_1value: 30.056- type: ndcg_at_10value: 43.038- type: ndcg_at_100value: 48.254000000000005- type: ndcg_at_1000value: 49.94- type: ndcg_at_3value: 36.897000000000006- type: ndcg_at_5value: 39.918- type: precision_at_1value: 30.056- type: precision_at_10value: 6.701- type: precision_at_100value: 0.983- type: precision_at_1000value: 0.116- type: precision_at_3value: 15.518- type: precision_at_5value: 11.096- type: recall_at_1value: 27.913- type: recall_at_10value: 58.111999999999995- type: recall_at_100value: 82.133- type: recall_at_1000value: 94.388- type: recall_at_3value: 41.735- type: recall_at_5value: 48.929- type: main_scorevalue: 43.038task:type: Retrieval- dataset:config: defaultname: MTEB CQADupstackMathematicaRetrievalrevision: Nonesplit: testtype: mteb/cqadupstack-mathematicametrics:- type: map_at_1value: 19.505- type: map_at_10value: 28.723- type: map_at_100value: 30.184- type: map_at_1000value: 30.298000000000002- type: map_at_3value: 25.317- type: map_at_5value: 27.247- type: mrr_at_1value: 24.254- type: mrr_at_10value: 33.743- type: mrr_at_100value: 34.8- type: mrr_at_1000value: 34.859- type: mrr_at_3value: 30.659- type: mrr_at_5value: 32.481- type: ndcg_at_1value: 24.254- type: ndcg_at_10value: 34.797- type: ndcg_at_100value: 41.074- type: ndcg_at_1000value: 43.639- type: ndcg_at_3value: 28.823- type: ndcg_at_5value: 31.679000000000002- type: precision_at_1value: 24.254- type: precision_at_10value: 6.691999999999999- type: precision_at_100value: 1.127- type: precision_at_1000value: 0.147- type: precision_at_3value: 14.179- type: precision_at_5value: 10.647- type: recall_at_1value: 19.505- type: recall_at_10value: 48.495- type: recall_at_100value: 74.888- type: recall_at_1000value: 93.04599999999999- type: recall_at_3value: 31.96- type: recall_at_5value: 39.183- type: main_scorevalue: 34.797task:type: Retrieval- dataset:config: defaultname: MTEB CQADupstackPhysicsRetrievalrevision: Nonesplit: testtype: mteb/cqadupstack-physicsmetrics:- type: map_at_1value: 32.565- type: map_at_10value: 45.793- type: map_at_100value: 47.22- type: map_at_1000value: 47.309- type: map_at_3value: 42.164- type: map_at_5value: 44.114- type: mrr_at_1value: 40.038000000000004- type: mrr_at_10value: 51.086- type: mrr_at_100value: 51.867- type: mrr_at_1000value: 51.897000000000006- type: mrr_at_3value: 48.396- type: mrr_at_5value: 49.921- type: ndcg_at_1value: 40.038000000000004- type: ndcg_at_10value: 52.329- type: ndcg_at_100value: 57.788- type: ndcg_at_1000value: 59.199999999999996- type: ndcg_at_3value: 46.861000000000004- type: ndcg_at_5value: 49.318- type: precision_at_1value: 40.038000000000004- type: precision_at_10value: 9.702- type: precision_at_100value: 1.4500000000000002- type: precision_at_1000value: 0.172- type: precision_at_3value: 22.842000000000002- type: precision_at_5value: 16.014999999999997- type: recall_at_1value: 32.565- type: recall_at_10value: 66.178- type: recall_at_100value: 88.568- type: recall_at_1000value: 97.419- type: recall_at_3value: 50.604000000000006- type: recall_at_5value: 57.247- type: main_scorevalue: 52.329task:type: Retrieval- dataset:config: defaultname: MTEB CQADupstackProgrammersRetrievalrevision: Nonesplit: testtype: mteb/cqadupstack-programmersmetrics:- type: map_at_1value: 29.395- type: map_at_10value: 41.93- type: map_at_100value: 43.364999999999995- type: map_at_1000value: 43.461- type: map_at_3value: 38.076- type: map_at_5value: 40.099000000000004- type: mrr_at_1value: 36.644- type: mrr_at_10value: 47.336- type: mrr_at_100value: 48.132000000000005- type: mrr_at_1000value: 48.169000000000004- type: mrr_at_3value: 44.196999999999996- type: mrr_at_5value: 45.972- type: ndcg_at_1value: 36.644- type: ndcg_at_10value: 48.768- type: ndcg_at_100value: 54.177- type: ndcg_at_1000value: 55.923- type: ndcg_at_3value: 42.663000000000004- type: ndcg_at_5value: 45.308- type: precision_at_1value: 36.644- type: precision_at_10value: 9.212- type: precision_at_100value: 1.4000000000000001- type: precision_at_1000value: 0.172- type: precision_at_3value: 20.776- type: precision_at_5value: 14.954- type: recall_at_1value: 29.395- type: recall_at_10value: 63.653000000000006- type: recall_at_100value: 85.488- type: recall_at_1000value: 97.235- type: recall_at_3value: 46.64- type: recall_at_5value: 53.604- type: main_scorevalue: 48.768task:type: Retrieval- dataset:config: defaultname: MTEB CQADupstackStatsRetrievalrevision: Nonesplit: testtype: mteb/cqadupstack-statsmetrics:- type: map_at_1value: 27.642- type: map_at_10value: 35.988- type: map_at_100value: 37.016- type: map_at_1000value: 37.102000000000004- type: map_at_3value: 33.016- type: map_at_5value: 34.598- type: mrr_at_1value: 30.828- type: mrr_at_10value: 38.866- type: mrr_at_100value: 39.732- type: mrr_at_1000value: 39.789- type: mrr_at_3value: 36.35- type: mrr_at_5value: 37.653- type: ndcg_at_1value: 30.828- type: ndcg_at_10value: 41.134- type: ndcg_at_100value: 46.169- type: ndcg_at_1000value: 48.157- type: ndcg_at_3value: 35.674- type: ndcg_at_5value: 38.104- type: precision_at_1value: 30.828- type: precision_at_10value: 6.61- type: precision_at_100value: 1.0030000000000001- type: precision_at_1000value: 0.125- type: precision_at_3value: 15.235000000000001- type: precision_at_5value: 10.706- type: recall_at_1value: 27.642- type: recall_at_10value: 54.142- type: recall_at_100value: 76.988- type: recall_at_1000value: 91.282- type: recall_at_3value: 39.128- type: recall_at_5value: 45.117000000000004- type: main_scorevalue: 41.134task:type: Retrieval- dataset:config: defaultname: MTEB CQADupstackTexRetrievalrevision: Nonesplit: testtype: mteb/cqadupstack-texmetrics:- type: map_at_1value: 20.505000000000003- type: map_at_10value: 28.921000000000003- type: map_at_100value: 30.165999999999997- type: map_at_1000value: 30.293- type: map_at_3value: 26.251- type: map_at_5value: 27.669- type: mrr_at_1value: 25.224000000000004- type: mrr_at_10value: 33.4- type: mrr_at_100value: 34.347- type: mrr_at_1000value: 34.418- type: mrr_at_3value: 31.028- type: mrr_at_5value: 32.33- type: ndcg_at_1value: 25.224000000000004- type: ndcg_at_10value: 34.202- type: ndcg_at_100value: 39.757- type: ndcg_at_1000value: 42.481- type: ndcg_at_3value: 29.656- type: ndcg_at_5value: 31.643- type: precision_at_1value: 25.224000000000004- type: precision_at_10value: 6.256- type: precision_at_100value: 1.054- type: precision_at_1000value: 0.148- type: precision_at_3value: 14.12- type: precision_at_5value: 10.103- type: recall_at_1value: 20.505000000000003- type: recall_at_10value: 45.578- type: recall_at_100value: 70.226- type: recall_at_1000value: 89.242- type: recall_at_3value: 32.446999999999996- type: recall_at_5value: 37.842- type: main_scorevalue: 34.202task:type: Retrieval- dataset:config: defaultname: MTEB CQADupstackUnixRetrievalrevision: Nonesplit: testtype: mteb/cqadupstack-unixmetrics:- type: map_at_1value: 30.446- type: map_at_10value: 41.296- type: map_at_100value: 42.620000000000005- type: map_at_1000value: 42.703- type: map_at_3value: 37.969- type: map_at_5value: 39.878- type: mrr_at_1value: 35.821- type: mrr_at_10value: 45.395- type: mrr_at_100value: 46.308- type: mrr_at_1000value: 46.354- type: mrr_at_3value: 42.553000000000004- type: mrr_at_5value: 44.352999999999994- type: ndcg_at_1value: 35.821- type: ndcg_at_10value: 47.176- type: ndcg_at_100value: 52.827999999999996- type: ndcg_at_1000value: 54.56100000000001- type: ndcg_at_3value: 41.695- type: ndcg_at_5value: 44.424- type: precision_at_1value: 35.821- type: precision_at_10value: 8.106- type: precision_at_100value: 1.2269999999999999- type: precision_at_1000value: 0.147- type: precision_at_3value: 19.403000000000002- type: precision_at_5value: 13.730999999999998- type: recall_at_1value: 30.446- type: recall_at_10value: 60.704- type: recall_at_100value: 84.73- type: recall_at_1000value: 96.531- type: recall_at_3value: 45.615- type: recall_at_5value: 52.683- type: main_scorevalue: 47.176task:type: Retrieval- dataset:config: defaultname: MTEB CQADupstackWebmastersRetrievalrevision: Nonesplit: testtype: mteb/cqadupstack-webmastersmetrics:- type: map_at_1value: 27.889000000000003- type: map_at_10value: 38.676- type: map_at_100value: 40.448- type: map_at_1000value: 40.689- type: map_at_3value: 35.13- type: map_at_5value: 37.058- type: mrr_at_1value: 34.19- type: mrr_at_10value: 43.532- type: mrr_at_100value: 44.504- type: mrr_at_1000value: 44.554- type: mrr_at_3value: 40.679- type: mrr_at_5value: 42.22- type: ndcg_at_1value: 34.19- type: ndcg_at_10value: 45.335- type: ndcg_at_100value: 51.196- type: ndcg_at_1000value: 53.337- type: ndcg_at_3value: 39.782000000000004- type: ndcg_at_5value: 42.24- type: precision_at_1value: 34.19- type: precision_at_10value: 8.834- type: precision_at_100value: 1.7229999999999999- type: precision_at_1000value: 0.255- type: precision_at_3value: 18.775- type: precision_at_5value: 13.715- type: recall_at_1value: 27.889000000000003- type: recall_at_10value: 58.391000000000005- type: recall_at_100value: 83.94200000000001- type: recall_at_1000value: 96.736- type: recall_at_3value: 42.208- type: recall_at_5value: 48.947- type: main_scorevalue: 45.335task:type: Retrieval- dataset:config: defaultname: MTEB CQADupstackWordpressRetrievalrevision: Nonesplit: testtype: mteb/cqadupstack-wordpressmetrics:- type: map_at_1value: 24.7522 unmodified lines- type: ndcg_at_1value: 27.357- type: ndcg_at_10value: 38.97- type: ndcg_at_100value: 44.317- type: ndcg_at_100027 unmodified lines- type: recall_at_5value: 44.639- type: main_scorevalue: 38.97task:type: Retrieval- dataset:80 unmodified lines8182838485868788899022 unmodified lines11311411511611711811927 unmodified lines14714814915015115215380 unmodified linestype: Retrieval- dataset:config: defaultname: MTEB CQADupstackRetrievalrevision: Nonesplit: testtype: mteb/cqadupstackmetrics:- type: map_at_1value: 24.7522 unmodified lines- type: ndcg_at_1value: 27.357- type: ndcg_at_10value: 46.593999999999997- type: ndcg_at_100value: 44.317- type: ndcg_at_100027 unmodified lines- type: recall_at_5value: 44.639- type: main_scorevalue: 46.593999999999997task:type: Retrieval- dataset:
README.md+4-785