Text Generation
Transformers
Safetensors
llama
model: llama
repo_name: llama_channel_2_sentence_ambiguity_Community
file_name: llama_channel_2_sentence_ambiguity_Community_5000_5.pt
pruning_style: channel
community: 2
pruning_ratio: 20
dataset_label: sentence_ambiguity
sparsity_ratio: 20
['tasksource/bigbench', 'sentence_ambiguity']
finetune: Community
modules_size: 56
modules: ['10_attn.o', '10_mlp.down', '11_attn.q', '11_gate', '11_mlp.down', '12_gate', '13_attn.o', '13_mlp.up', '14_attn.o', '14_gate', '14_mlp.down', '14_mlp.up', '15_gate', '15_mlp.up', '16_attn.k', '16_attn.o', '16_attn.v', '17_attn.k', '17_gate', '17_mlp.up', '18_attn.k', '20_attn.o', '20_attn.q', '21_attn.o', '21_attn.q', '21_gate', '22_mlp.down', '24_attn.k', '24_mlp.up', '25_attn.o', '25_attn.q', '26_attn.o', '27_attn.k', '27_attn.o', '27_attn.v', '27_mlp.up', '28_gate', '29_attn.k', '29_attn.o', '29_attn.v', '29_gate', '30_attn.k', '30_attn.o', '3_mlp.down', '4_attn.k', '4_mlp.up', '5_attn.k', '5_mlp.down', '6_attn.q', '6_mlp.down', '7_attn.k', '7_attn.o', '7_attn.q', '7_attn.v', '7_mlp.down', '9_mlp.down']
rank: 1
tags: ['model: llama', 'repo_name: llama_channel_2_sentence_ambiguity_Community', 'file_name: llama_channel_2_sentence_ambiguity_Community_5000_5.pt', 'base_model: meta-llama/Llama-2-7b-hf', 'pruning_style: channel', 'community: 2', 'pruning_ratio: 20', 'dataset_label: sentence_ambiguity', 'sparsity_ratio: 20', "dataset: ['tasksource/bigbench', 'sentence_ambiguity']", 'finetune: Community', 'modules_size: 56', "modules: ['10_attn.o', '10_mlp.down', '11_attn.q', '11_gate', '11_mlp.down', '12_gate', '13_attn.o', '13_mlp.up', '14_attn.o', '14_gate', '14_mlp.down', '14_mlp.up', '15_gate', '15_mlp.up', '16_attn.k', '16_attn.o', '16_attn.v', '17_attn.k', '17_gate', '17_mlp.up', '18_attn.k', '20_attn.o', '20_attn.q', '21_attn.o', '21_attn.q', '21_gate', '22_mlp.down', '24_attn.k', '24_mlp.up', '25_attn.o', '25_attn.q', '26_attn.o', '27_attn.k', '27_attn.o', '27_attn.v', '27_mlp.up', '28_gate', '29_attn.k', '29_attn.o', '29_attn.v', '29_gate', '30_attn.k', '30_attn.o', '3_mlp.down', '4_attn.k', '4_mlp.up', '5_attn.k', '5_mlp.down', '6_attn.q', '6_mlp.down', '7_attn.k', '7_attn.o', '7_attn.q', '7_attn.v', '7_mlp.down', '9_mlp.down']", 'rank: 1']
text-generation-inference
Instructions to use KBhandari11/llama_channel_2_sentence_ambiguity_Community with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KBhandari11/llama_channel_2_sentence_ambiguity_Community with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KBhandari11/llama_channel_2_sentence_ambiguity_Community")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("KBhandari11/llama_channel_2_sentence_ambiguity_Community") model = AutoModelForCausalLM.from_pretrained("KBhandari11/llama_channel_2_sentence_ambiguity_Community", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use KBhandari11/llama_channel_2_sentence_ambiguity_Community with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KBhandari11/llama_channel_2_sentence_ambiguity_Community" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KBhandari11/llama_channel_2_sentence_ambiguity_Community", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/KBhandari11/llama_channel_2_sentence_ambiguity_Community
- SGLang
How to use KBhandari11/llama_channel_2_sentence_ambiguity_Community 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 "KBhandari11/llama_channel_2_sentence_ambiguity_Community" \ --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": "KBhandari11/llama_channel_2_sentence_ambiguity_Community", "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 "KBhandari11/llama_channel_2_sentence_ambiguity_Community" \ --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": "KBhandari11/llama_channel_2_sentence_ambiguity_Community", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use KBhandari11/llama_channel_2_sentence_ambiguity_Community with Docker Model Runner:
docker model run hf.co/KBhandari11/llama_channel_2_sentence_ambiguity_Community
Ctrl+K