Run this model with HF Jobs
Run mlabonne/Llama-3.1-70B-Instruct-lorablated 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/mlabonne/Llama-3.1-70B-Instruct-lorablated. 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/mlabonne/Llama-3.1-70B-Instruct-lorablated 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/mlabonne/Llama-3.1-70B-Instruct-lorablated. 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/mlabonne/Llama-3.1-70B-Instruct-lorablated. 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 mlabonne/Llama-3.1-70B-Instruct-lorablated with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mlabonne/Llama-3.1-70B-Instruct-lorablated with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mlabonne/Llama-3.1-70B-Instruct-lorablated") 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("mlabonne/Llama-3.1-70B-Instruct-lorablated") model = AutoModelForCausalLM.from_pretrained("mlabonne/Llama-3.1-70B-Instruct-lorablated", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mlabonne/Llama-3.1-70B-Instruct-lorablated with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mlabonne/Llama-3.1-70B-Instruct-lorablated" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mlabonne/Llama-3.1-70B-Instruct-lorablated", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/mlabonne/Llama-3.1-70B-Instruct-lorablated
- SGLang
How to use mlabonne/Llama-3.1-70B-Instruct-lorablated 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 "mlabonne/Llama-3.1-70B-Instruct-lorablated" \ --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": "mlabonne/Llama-3.1-70B-Instruct-lorablated", "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 "mlabonne/Llama-3.1-70B-Instruct-lorablated" \ --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": "mlabonne/Llama-3.1-70B-Instruct-lorablated", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use mlabonne/Llama-3.1-70B-Instruct-lorablated with Docker Model Runner:
docker model run hf.co/mlabonne/Llama-3.1-70B-Instruct-lorablated
Pretty good for RP
This is excellent model for Roleplay if you do not need extreme violence or ERP. All abliterated models I tried in the past were bad (losing intelligence, creativity, personality), but this one works and seems to keep the intelligence and personality of L3.1. For me currently the best local model for RP (better than L3.1 finetunes I tried so far).
It still has some positive bias but can play evil characters. It is hesitant in extreme cases, but that I think is natural. And with heavy stirring/prompting you can get it there too.
It does not rush but will advance plot/scenes on its own (very rarely gets stuck but then you can easily advance yourself and it will go on from there).
It is suitable for a story to run for a long time. With some user help even consistent stories with hundreds of messages.
It can keep track of several characters - eg three main characters (+user) is usually no problem. With some help (summarizing, author notes, subtle hints in replies) it can keep track of more.
It does not need many rerolls/edits. But it is still LLM so it needs a bit of help from you. Eg. most LLM's want to go fetch or research some ancient artifacts all the time. So when it is crucial moment where new quest/project is decided, it is good place to reroll until you get something sensible/interesting/different.
Occasionally it produces reply that is too inconsistent/illogical so that is good place to reroll or edit too.
It is not best if you want something especially dark and gloom with no hope at all. If things go very badly for you this model tries to help somehow.
For sampler I only use Minp: 0.02 and DRY default 0.8/2/1.75. Everything else neutral/disabled.
I run it locally, tried GGUF from IQ4_XS to IQ2_XS. IQ3_S and above are great. IQ3_XXS still pretty good. IQ2_M and IQ2_XS are usable but there is visible drop in performance.
Hey thanks for your feedback, I'm adding a link to your post in the model card :)