Text Generation
Transformers
Safetensors
English
llama
raquel
muse
ga
lora
merged
machine-unlearning
research
text-generation-inference
Instructions to use Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1") model = AutoModelForCausalLM.from_pretrained("Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1
- SGLang
How to use Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1 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 "Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1" \ --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": "Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1", "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 "Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1" \ --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": "Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1 with Docker Model Runner:
docker model run hf.co/Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1
Download evaluation.json from Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1: direct link, hf CLI and curl.
- Browser
- Download file 3.16 kB
-
https://huggingface.co/Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1/resolve/main/evaluation.json
- Command line
-
hf download hf://Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1/evaluation.json
-
curl -L -o evaluation.json https://huggingface.co/Hyukkyu/Llama-3.1-8B-RAQUEL-MUSE-Unlearn-GA-GD-LoRA-v1/resolve/main/evaluation.json
3.16 kB
| { | |
| "data_repository": "Hyukkyu/RAQUEL2-ICLR", | |
| "data_revision": "ac82756570fcce84441fb413ab523de8da679efd", | |
| "evaluated_adapter": "early_stop", | |
| "evidence": { | |
| "judge_inputs_sha256": "2f0c5ba0b2d3a7272bfc9ae54d83b1dd7f025793780b4f48c791fc8c494174db", | |
| "judgments_sha256": "f246f3570f0a1bb6c96893a0d02030b91db76cdd96762d171e02e56a54b1c843" | |
| }, | |
| "generation": { | |
| "do_sample": false, | |
| "max_new_tokens": 96, | |
| "max_prompt_length": 512, | |
| "prompt": "Question: {question}\nAnswer:" | |
| }, | |
| "judge": { | |
| "model": "Qwen/Qwen3.8-27B", | |
| "served_name": "qwen3.8-27b", | |
| "server": "vLLM 0.28.0", | |
| "temperature": 0, | |
| "thinking": false | |
| }, | |
| "merge_audit": { | |
| "export_precision": "bfloat16", | |
| "max_kl": 0.005556544288992882, | |
| "maximum_allowed_kl": 0.1, | |
| "mean_absolute_logit_difference": 0.07428131997585297, | |
| "merge_algorithm": "fp32_sum_then_cast_once", | |
| "prompts": 16, | |
| "top1_agreement": 1.0 | |
| }, | |
| "metrics": { | |
| "muse_forget": { | |
| "accuracy": 0.014666666666666666, | |
| "correct": 11, | |
| "total": 750 | |
| }, | |
| "muse_forget_rephrased": { | |
| "accuracy": 0.020242914979757085, | |
| "correct": 15, | |
| "total": 741 | |
| }, | |
| "muse_retain": { | |
| "accuracy": 0.9253846153846154, | |
| "correct": 1203, | |
| "total": 1300 | |
| }, | |
| "muse_retain_rephrased": { | |
| "accuracy": 0.7724084177708496, | |
| "correct": 991, | |
| "total": 1283 | |
| }, | |
| "raquel_affected": { | |
| "accuracy": 0.03861907548273844, | |
| "correct": 66, | |
| "total": 1709 | |
| }, | |
| "raquel_unaffected": { | |
| "accuracy": 0.1263681592039801, | |
| "correct": 254, | |
| "total": 2010 | |
| } | |
| }, | |
| "reference": { | |
| "M_orig": { | |
| "muse_forget": { | |
| "accuracy": 0.9973333333333333, | |
| "correct": 748, | |
| "total": 750 | |
| }, | |
| "muse_forget_rephrased": { | |
| "accuracy": 0.9109311740890689, | |
| "correct": 675, | |
| "total": 741 | |
| }, | |
| "muse_retain": { | |
| "accuracy": 1.0, | |
| "correct": 1300, | |
| "total": 1300 | |
| }, | |
| "muse_retain_rephrased": { | |
| "accuracy": 0.8745128604832424, | |
| "correct": 1122, | |
| "total": 1283 | |
| }, | |
| "raquel_affected": { | |
| "accuracy": 0.11761263897015799, | |
| "correct": 201, | |
| "total": 1709 | |
| }, | |
| "raquel_unaffected": { | |
| "accuracy": 0.16019900497512438, | |
| "correct": 322, | |
| "total": 2010 | |
| } | |
| }, | |
| "M_ret": { | |
| "muse_forget": { | |
| "accuracy": 0.23466666666666666, | |
| "correct": 176, | |
| "total": 750 | |
| }, | |
| "muse_forget_rephrased": { | |
| "accuracy": 0.2145748987854251, | |
| "correct": 159, | |
| "total": 741 | |
| }, | |
| "muse_retain": { | |
| "accuracy": 1.0, | |
| "correct": 1300, | |
| "total": 1300 | |
| }, | |
| "muse_retain_rephrased": { | |
| "accuracy": 0.8893219017926735, | |
| "correct": 1141, | |
| "total": 1283 | |
| }, | |
| "raquel_affected": { | |
| "accuracy": 0.08952603861907549, | |
| "correct": 153, | |
| "total": 1709 | |
| }, | |
| "raquel_unaffected": { | |
| "accuracy": 0.12736318407960198, | |
| "correct": 256, | |
| "total": 2010 | |
| } | |
| } | |
| } | |
| } | |