Instructions to use flozi00/Llama-2-13b-german-assistant-v7 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flozi00/Llama-2-13b-german-assistant-v7 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="flozi00/Llama-2-13b-german-assistant-v7")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("flozi00/Llama-2-13b-german-assistant-v7") model = AutoModelForCausalLM.from_pretrained("flozi00/Llama-2-13b-german-assistant-v7", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use flozi00/Llama-2-13b-german-assistant-v7 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "flozi00/Llama-2-13b-german-assistant-v7" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "flozi00/Llama-2-13b-german-assistant-v7", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/flozi00/Llama-2-13b-german-assistant-v7
- SGLang
How to use flozi00/Llama-2-13b-german-assistant-v7 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 "flozi00/Llama-2-13b-german-assistant-v7" \ --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": "flozi00/Llama-2-13b-german-assistant-v7", "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 "flozi00/Llama-2-13b-german-assistant-v7" \ --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": "flozi00/Llama-2-13b-german-assistant-v7", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use flozi00/Llama-2-13b-german-assistant-v7 with Docker Model Runner:
docker model run hf.co/flozi00/Llama-2-13b-german-assistant-v7
Upload model
Browse files- README.md +26 -0
- adapter_model.bin +1 -1
README.md
CHANGED
|
@@ -256,6 +256,30 @@ The following `bitsandbytes` quantization config was used during training:
|
|
| 256 |
- bnb_4bit_use_double_quant: False
|
| 257 |
- bnb_4bit_compute_dtype: float16
|
| 258 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 259 |
The following `bitsandbytes` quantization config was used during training:
|
| 260 |
- quant_method: bitsandbytes
|
| 261 |
- load_in_8bit: False
|
|
@@ -290,5 +314,7 @@ The following `bitsandbytes` quantization config was used during training:
|
|
| 290 |
- PEFT 0.6.0.dev0
|
| 291 |
- PEFT 0.6.0.dev0
|
| 292 |
- PEFT 0.6.0.dev0
|
|
|
|
|
|
|
| 293 |
|
| 294 |
- PEFT 0.6.0.dev0
|
|
|
|
| 256 |
- bnb_4bit_use_double_quant: False
|
| 257 |
- bnb_4bit_compute_dtype: float16
|
| 258 |
|
| 259 |
+
The following `bitsandbytes` quantization config was used during training:
|
| 260 |
+
- quant_method: bitsandbytes
|
| 261 |
+
- load_in_8bit: False
|
| 262 |
+
- load_in_4bit: True
|
| 263 |
+
- llm_int8_threshold: 6.0
|
| 264 |
+
- llm_int8_skip_modules: None
|
| 265 |
+
- llm_int8_enable_fp32_cpu_offload: False
|
| 266 |
+
- llm_int8_has_fp16_weight: False
|
| 267 |
+
- bnb_4bit_quant_type: fp4
|
| 268 |
+
- bnb_4bit_use_double_quant: False
|
| 269 |
+
- bnb_4bit_compute_dtype: float16
|
| 270 |
+
|
| 271 |
+
The following `bitsandbytes` quantization config was used during training:
|
| 272 |
+
- quant_method: bitsandbytes
|
| 273 |
+
- load_in_8bit: False
|
| 274 |
+
- load_in_4bit: True
|
| 275 |
+
- llm_int8_threshold: 6.0
|
| 276 |
+
- llm_int8_skip_modules: None
|
| 277 |
+
- llm_int8_enable_fp32_cpu_offload: False
|
| 278 |
+
- llm_int8_has_fp16_weight: False
|
| 279 |
+
- bnb_4bit_quant_type: fp4
|
| 280 |
+
- bnb_4bit_use_double_quant: False
|
| 281 |
+
- bnb_4bit_compute_dtype: float16
|
| 282 |
+
|
| 283 |
The following `bitsandbytes` quantization config was used during training:
|
| 284 |
- quant_method: bitsandbytes
|
| 285 |
- load_in_8bit: False
|
|
|
|
| 314 |
- PEFT 0.6.0.dev0
|
| 315 |
- PEFT 0.6.0.dev0
|
| 316 |
- PEFT 0.6.0.dev0
|
| 317 |
+
- PEFT 0.6.0.dev0
|
| 318 |
+
- PEFT 0.6.0.dev0
|
| 319 |
|
| 320 |
- PEFT 0.6.0.dev0
|
adapter_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2002982221
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4efa60c1caa8f79d1609e6ea124adbaa5341f09f167c72d45d6358ed0592681e
|
| 3 |
size 2002982221
|