Image-Text-to-Text
Transformers
Safetensors
safety
weight-editing
ablation
mllm
qwen3-vl
educational
Instructions to use AnirudhNarayan/Qwen_2b_ASR_change_experiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AnirudhNarayan/Qwen_2b_ASR_change_experiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="AnirudhNarayan/Qwen_2b_ASR_change_experiment")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AnirudhNarayan/Qwen_2b_ASR_change_experiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AnirudhNarayan/Qwen_2b_ASR_change_experiment with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AnirudhNarayan/Qwen_2b_ASR_change_experiment" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AnirudhNarayan/Qwen_2b_ASR_change_experiment", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AnirudhNarayan/Qwen_2b_ASR_change_experiment
- SGLang
How to use AnirudhNarayan/Qwen_2b_ASR_change_experiment 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 "AnirudhNarayan/Qwen_2b_ASR_change_experiment" \ --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": "AnirudhNarayan/Qwen_2b_ASR_change_experiment", "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 "AnirudhNarayan/Qwen_2b_ASR_change_experiment" \ --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": "AnirudhNarayan/Qwen_2b_ASR_change_experiment", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AnirudhNarayan/Qwen_2b_ASR_change_experiment with Docker Model Runner:
docker model run hf.co/AnirudhNarayan/Qwen_2b_ASR_change_experiment
Download layer16_zero/edit_report.json from AnirudhNarayan/Qwen_2b_ASR_change_experiment: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/AnirudhNarayan/Qwen_2b_ASR_change_experiment/resolve/main/layer16_zero/edit_report.json
- Command line
-
hf download hf://AnirudhNarayan/Qwen_2b_ASR_change_experiment/layer16_zero/edit_report.json
-
curl -L -o edit_report.json https://huggingface.co/AnirudhNarayan/Qwen_2b_ASR_change_experiment/resolve/main/layer16_zero/edit_report.json
1.22 kB
| { | |
| "source": "/home/an548089/WSP_Safety/attack_stage1_qwen2b/checkpoint/model.safetensors", | |
| "source_sha256": "6fed2bd719cb22cdb3227fad6527cb353132359b261043284203a1bccda6e476", | |
| "source_unchanged": true, | |
| "edit": "zero all tensors under model.language_model.layers.16.*", | |
| "n_tensors_total": 625, | |
| "n_tensors_zeroed": 11, | |
| "tensors_zeroed": [ | |
| "model.language_model.layers.16.input_layernorm.weight", | |
| "model.language_model.layers.16.mlp.down_proj.weight", | |
| "model.language_model.layers.16.mlp.gate_proj.weight", | |
| "model.language_model.layers.16.mlp.up_proj.weight", | |
| "model.language_model.layers.16.post_attention_layernorm.weight", | |
| "model.language_model.layers.16.self_attn.k_norm.weight", | |
| "model.language_model.layers.16.self_attn.k_proj.weight", | |
| "model.language_model.layers.16.self_attn.o_proj.weight", | |
| "model.language_model.layers.16.self_attn.q_norm.weight", | |
| "model.language_model.layers.16.self_attn.q_proj.weight", | |
| "model.language_model.layers.16.self_attn.v_proj.weight" | |
| ], | |
| "out": "/home/an548089/WSP_Safety/Edited_weights_attack/Qwen2B_layer16_zero/model.safetensors", | |
| "out_sha256": "abcd0dd002e1ccee83b0a6008a799aa7fbfd347ab91da3ad05c8c7e1a9054000" | |
| } |