Instructions to use Sadiah/Gollum with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sadiah/Gollum with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Sadiah/Gollum")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Sadiah/Gollum") model = AutoModelForCausalLM.from_pretrained("Sadiah/Gollum") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Sadiah/Gollum with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sadiah/Gollum" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sadiah/Gollum", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Sadiah/Gollum
- SGLang
How to use Sadiah/Gollum 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 "Sadiah/Gollum" \ --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": "Sadiah/Gollum", "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 "Sadiah/Gollum" \ --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": "Sadiah/Gollum", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Sadiah/Gollum with Docker Model Runner:
docker model run hf.co/Sadiah/Gollum
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Gollum Tonality Fine-Tuned LLaMA-2 Model
|
| 2 |
|
|
|
|
|
|
|
| 3 |
## Overview
|
| 4 |
This model is a fine-tuned version of the LLAMA-2 7B model, specifically trained to generate responses with a tonality similar to the character Gollum from J.R.R. Tolkien's "The Lord of the Rings" series. The model has been fine-tuned using a dataset of Gollum's dialogue and text samples to capture his unique speaking style, mannerisms, and personality.
|
| 5 |
|
|
@@ -62,4 +72,4 @@ print(answer)
|
|
| 62 |
This code snippet allows you to provide an input prompt and generate a response from the model. The generated text will aim to mimic Gollum's tonality and personality based on the fine-tuning process.
|
| 63 |
|
| 64 |
## Contact and Feedback
|
| 65 |
-
If you have any questions, feedback, or concerns regarding the Gollum Tonality Fine-Tuned LLaMA Model, please contact me https://www.sadiahzahoor.com/contact.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
datasets:
|
| 4 |
+
- Sadiah/Gollum
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
library_name: transformers
|
| 8 |
+
---
|
| 9 |
# Gollum Tonality Fine-Tuned LLaMA-2 Model
|
| 10 |
|
| 11 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/6564e76de6b20bc37e494589/wcj1pIDVKbhkyi_DBdAPV.png" width="600" alt="Gollum Tonality Fine-Tuned LLAMA-2 7B Model inference code">
|
| 12 |
+
|
| 13 |
## Overview
|
| 14 |
This model is a fine-tuned version of the LLAMA-2 7B model, specifically trained to generate responses with a tonality similar to the character Gollum from J.R.R. Tolkien's "The Lord of the Rings" series. The model has been fine-tuned using a dataset of Gollum's dialogue and text samples to capture his unique speaking style, mannerisms, and personality.
|
| 15 |
|
|
|
|
| 72 |
This code snippet allows you to provide an input prompt and generate a response from the model. The generated text will aim to mimic Gollum's tonality and personality based on the fine-tuning process.
|
| 73 |
|
| 74 |
## Contact and Feedback
|
| 75 |
+
If you have any questions, feedback, or concerns regarding the Gollum Tonality Fine-Tuned LLaMA Model, please contact me https://www.sadiahzahoor.com/contact.
|