Text Generation
Transformers
PyTorch
PEFT
English
llama
decapoda-research-7b-hf
prompt answering
text-generation-inference
8-bit precision
Instructions to use Sandiago21/llama-7b-hf-prompt-answering with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sandiago21/llama-7b-hf-prompt-answering with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Sandiago21/llama-7b-hf-prompt-answering")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Sandiago21/llama-7b-hf-prompt-answering") model = AutoModelForCausalLM.from_pretrained("Sandiago21/llama-7b-hf-prompt-answering", device_map="auto") - PEFT
How to use Sandiago21/llama-7b-hf-prompt-answering with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Sandiago21/llama-7b-hf-prompt-answering with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sandiago21/llama-7b-hf-prompt-answering" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sandiago21/llama-7b-hf-prompt-answering", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Sandiago21/llama-7b-hf-prompt-answering
- SGLang
How to use Sandiago21/llama-7b-hf-prompt-answering 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 "Sandiago21/llama-7b-hf-prompt-answering" \ --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": "Sandiago21/llama-7b-hf-prompt-answering", "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 "Sandiago21/llama-7b-hf-prompt-answering" \ --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": "Sandiago21/llama-7b-hf-prompt-answering", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Sandiago21/llama-7b-hf-prompt-answering with Docker Model Runner:
docker model run hf.co/Sandiago21/llama-7b-hf-prompt-answering
| *.7z filter=lfs diff=lfs merge=lfs -text | |
| *.arrow filter=lfs diff=lfs merge=lfs -text | |
| *.bin filter=lfs diff=lfs merge=lfs -text | |
| *.bz2 filter=lfs diff=lfs merge=lfs -text | |
| *.ckpt filter=lfs diff=lfs merge=lfs -text | |
| *.ftz filter=lfs diff=lfs merge=lfs -text | |
| *.gz filter=lfs diff=lfs merge=lfs -text | |
| *.h5 filter=lfs diff=lfs merge=lfs -text | |
| *.joblib filter=lfs diff=lfs merge=lfs -text | |
| *.lfs.* filter=lfs diff=lfs merge=lfs -text | |
| *.mlmodel filter=lfs diff=lfs merge=lfs -text | |
| *.model filter=lfs diff=lfs merge=lfs -text | |
| *.msgpack filter=lfs diff=lfs merge=lfs -text | |
| *.npy filter=lfs diff=lfs merge=lfs -text | |
| *.npz filter=lfs diff=lfs merge=lfs -text | |
| *.onnx filter=lfs diff=lfs merge=lfs -text | |
| *.ot filter=lfs diff=lfs merge=lfs -text | |
| *.parquet filter=lfs diff=lfs merge=lfs -text | |
| *.pb filter=lfs diff=lfs merge=lfs -text | |
| *.pickle filter=lfs diff=lfs merge=lfs -text | |
| *.pkl filter=lfs diff=lfs merge=lfs -text | |
| *.pt filter=lfs diff=lfs merge=lfs -text | |
| *.pth filter=lfs diff=lfs merge=lfs -text | |
| *.rar filter=lfs diff=lfs merge=lfs -text | |
| *.safetensors filter=lfs diff=lfs merge=lfs -text | |
| saved_model/**/* filter=lfs diff=lfs merge=lfs -text | |
| *.tar.* filter=lfs diff=lfs merge=lfs -text | |
| *.tflite filter=lfs diff=lfs merge=lfs -text | |
| *.tgz filter=lfs diff=lfs merge=lfs -text | |
| *.wasm filter=lfs diff=lfs merge=lfs -text | |
| *.xz filter=lfs diff=lfs merge=lfs -text | |
| *.zip filter=lfs diff=lfs merge=lfs -text | |
| *.zst filter=lfs diff=lfs merge=lfs -text | |
| *tfevents* filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00035-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00003-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00005-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00009-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00011-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00014-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00024-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00030-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00023-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00029-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00031-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00012-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00017-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00018-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00028-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00015-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00020-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00025-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00032-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00033-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00034-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00001-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00004-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00006-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00007-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00022-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00039-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00010-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00013-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00019-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00021-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00016-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00026-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00027-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00036-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00002-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00008-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00037-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model-00038-of-00039.bin filter=lfs diff=lfs merge=lfs -text | |
| finetuned_conversations.pth filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model.bin filter=lfs diff=lfs merge=lfs -text | |
| adapter_model.bin filter=lfs diff=lfs merge=lfs -text | |
| pytorch_model_trainer_llama_7b.bin filter=lfs diff=lfs merge=lfs -text | |
| training_args.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00006-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00008-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00018-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00023-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00025-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00009-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00024-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00015-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00021-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00032-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00005-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00007-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00016-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00030-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00014-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00028-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00029-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00010-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00011-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00013-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00019-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00020-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00022-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00026-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00001-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00002-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00004-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00012-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00017-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00003-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00027-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00031-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| decapoda-research/llama-7b-hf/pytorch_model-00033-of-00033.bin filter=lfs diff=lfs merge=lfs -text | |
| /root/repos/ds-media-contextual-recommendation/notebooks/lora-alpaca/conversations/GPU/Sandiago21/llama-7b-hf-prompt-answering/decapoda-research/llama-7b-hf/pytorch_model.bin filter=lfs diff=lfs merge=lfs -text | |
| /root/repos/ds-media-contextual-recommendation/notebooks/lora-alpaca/conversations/GPU/Sandiago21/llama-7b-hf-prompt-answering/decapoda-research/llama-7b-hf/finetuned_conversations.pth filter=lfs diff=lfs merge=lfs -text | |
| py filter=lfs diff=lfs merge=lfs -text | |