Text Generation
Transformers
Safetensors
llama
model: llama_chat
repo_name: llama_chat_block_3_anachronisms_Community
file_name: llama_chat_block_3_anachronisms_Community_5000_5.pt
pruning_style: block
community: 3
pruning_ratio: 20
dataset_label: anachronisms
sparsity_ratio: 20
['tasksource/bigbench', 'anachronisms']
finetune: Community
modules_size: 22
modules: ['11_attn.k', '11_attn.o', '11_attn.v', '12_attn.v', '18_attn.o', '18_attn.v', '19_attn.k', '20_attn.q', '23_attn.q', '25_attn.q', '25_attn.v', '26_attn.q', '27_attn.q', '28_attn.o', '29_attn.o', '29_attn.q', '29_attn.v', '30_attn.q', '7_attn.o', '8_attn.o', '8_attn.q', '8_attn.v']
rank: 1
tags: ['model: llama_chat', 'repo_name: llama_chat_block_3_anachronisms_Community', 'file_name: llama_chat_block_3_anachronisms_Community_5000_5.pt', 'base_model: meta-llama/Llama-2-7b-chat-hf', 'pruning_style: block', 'community: 3', 'pruning_ratio: 20', 'dataset_label: anachronisms', 'sparsity_ratio: 20', "dataset: ['tasksource/bigbench', 'anachronisms']", 'finetune: Community', 'modules_size: 22', "modules: ['11_attn.k', '11_attn.o', '11_attn.v', '12_attn.v', '18_attn.o', '18_attn.v', '19_attn.k', '20_attn.q', '23_attn.q', '25_attn.q', '25_attn.v', '26_attn.q', '27_attn.q', '28_attn.o', '29_attn.o', '29_attn.q', '29_attn.v', '30_attn.q', '7_attn.o', '8_attn.o', '8_attn.q', '8_attn.v']", 'rank: 1']
text-generation-inference
Instructions to use KBhandari11/llama_chat_block_3_anachronisms_Community with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KBhandari11/llama_chat_block_3_anachronisms_Community with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KBhandari11/llama_chat_block_3_anachronisms_Community")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("KBhandari11/llama_chat_block_3_anachronisms_Community") model = AutoModelForCausalLM.from_pretrained("KBhandari11/llama_chat_block_3_anachronisms_Community", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use KBhandari11/llama_chat_block_3_anachronisms_Community with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KBhandari11/llama_chat_block_3_anachronisms_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_chat_block_3_anachronisms_Community", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/KBhandari11/llama_chat_block_3_anachronisms_Community
- SGLang
How to use KBhandari11/llama_chat_block_3_anachronisms_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_chat_block_3_anachronisms_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_chat_block_3_anachronisms_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_chat_block_3_anachronisms_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_chat_block_3_anachronisms_Community", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use KBhandari11/llama_chat_block_3_anachronisms_Community with Docker Model Runner:
docker model run hf.co/KBhandari11/llama_chat_block_3_anachronisms_Community
Commit ·
e5bd85d
verified ·
0
Parent(s):
initial commit
Browse files- .gitattributes +35 -0
.gitattributes
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|