Instructions to use kenken6696/llama-2-7b-folio_by_ccg2lambda with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kenken6696/llama-2-7b-folio_by_ccg2lambda with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kenken6696/llama-2-7b-folio_by_ccg2lambda")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("kenken6696/llama-2-7b-folio_by_ccg2lambda") model = AutoModelForCausalLM.from_pretrained("kenken6696/llama-2-7b-folio_by_ccg2lambda") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kenken6696/llama-2-7b-folio_by_ccg2lambda with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kenken6696/llama-2-7b-folio_by_ccg2lambda" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kenken6696/llama-2-7b-folio_by_ccg2lambda", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/kenken6696/llama-2-7b-folio_by_ccg2lambda
- SGLang
How to use kenken6696/llama-2-7b-folio_by_ccg2lambda 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 "kenken6696/llama-2-7b-folio_by_ccg2lambda" \ --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": "kenken6696/llama-2-7b-folio_by_ccg2lambda", "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 "kenken6696/llama-2-7b-folio_by_ccg2lambda" \ --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": "kenken6696/llama-2-7b-folio_by_ccg2lambda", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use kenken6696/llama-2-7b-folio_by_ccg2lambda with Docker Model Runner:
docker model run hf.co/kenken6696/llama-2-7b-folio_by_ccg2lambda
Commit ·
ef0f54c
1
Parent(s): 5a851df
Upload LlamaForCausalLM
Browse files
generation_config.json
CHANGED
|
@@ -2,6 +2,8 @@
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 1,
|
| 4 |
"eos_token_id": 2,
|
| 5 |
-
"pad_token_id":
|
|
|
|
|
|
|
| 6 |
"transformers_version": "4.31.0"
|
| 7 |
}
|
|
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 1,
|
| 4 |
"eos_token_id": 2,
|
| 5 |
+
"pad_token_id": 32000,
|
| 6 |
+
"temperature": 0.9,
|
| 7 |
+
"top_p": 0.6,
|
| 8 |
"transformers_version": "4.31.0"
|
| 9 |
}
|
pytorch_model-00001-of-00002.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 9976638373
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e9021f1bacb428e87cdd829c915451b94b258b4d0aa883cf3e53721dbab8bc2
|
| 3 |
size 9976638373
|
pytorch_model-00002-of-00002.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3500317102
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a87c9c602e05391a2b668b411273d14a118ae5ffe0f496abe0f39633ebce4541
|
| 3 |
size 3500317102
|