How to use from
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 "Jeesup/MUSE-News_Llama-2-7b_graddiff_lr5e-6_lam20_ep5_bestretain" \
    --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": "Jeesup/MUSE-News_Llama-2-7b_graddiff_lr5e-6_lam20_ep5_bestretain",
		"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 "Jeesup/MUSE-News_Llama-2-7b_graddiff_lr5e-6_lam20_ep5_bestretain" \
        --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": "Jeesup/MUSE-News_Llama-2-7b_graddiff_lr5e-6_lam20_ep5_bestretain",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Quick Links

Jeesup/MUSE-News_Llama-2-7b_graddiff_lr5e-6_lam20_ep5_bestretain

MUSE unlearning run uploaded by run_muse_settings_to_hf.py.

  • Corpus: news
  • Algorithm: graddiff (ga_gdr)
  • Learning rate: 5e-06
  • Retain loss coefficient lambda: 20.0
  • Epochs: 5
  • NPO beta: not applicable

See muse_run_metadata.json for checkpoint selection details.

Downloads last month
10
Safetensors
Model size
7B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Jeesup/MUSE-News_Llama-2-7b_graddiff_lr5e-6_lam20_ep5_bestretain

Finetuned
(36)
this model