Instructions to use TidasSilva/SIGHA_GPT1.5_STORY with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TidasSilva/SIGHA_GPT1.5_STORY with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TidasSilva/SIGHA_GPT1.5_STORY") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TidasSilva/SIGHA_GPT1.5_STORY") model = AutoModelForCausalLM.from_pretrained("TidasSilva/SIGHA_GPT1.5_STORY", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TidasSilva/SIGHA_GPT1.5_STORY with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TidasSilva/SIGHA_GPT1.5_STORY" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TidasSilva/SIGHA_GPT1.5_STORY", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/TidasSilva/SIGHA_GPT1.5_STORY
- SGLang
How to use TidasSilva/SIGHA_GPT1.5_STORY 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 "TidasSilva/SIGHA_GPT1.5_STORY" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TidasSilva/SIGHA_GPT1.5_STORY", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "TidasSilva/SIGHA_GPT1.5_STORY" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TidasSilva/SIGHA_GPT1.5_STORY", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use TidasSilva/SIGHA_GPT1.5_STORY with Docker Model Runner:
docker model run hf.co/TidasSilva/SIGHA_GPT1.5_STORY
Llama SIGHA GPT1.5 STORY (merged 16-bit)
Built with Llama. This repository contains full, standalone, merged 16-bit base + LoRA weights. It is not an adapter-only repository. Model architecture: Llama 3.1 8B via dphn/Dolphin3.0-Llama3.1-8B.
The prior LoRA adapter is preserved in adapters/stage2/ for provenance;
from_pretrained() loads the fully merged model from the repository root.
Fine-tuning
- LoRA/QLoRA: Unsloth, story-writing SFT
- Initial: 180 optimizer steps, followed by 56 Stage 2 optimizer steps
- Training sequence length: 8,192 tokens
- Stage 2 validation loss: 2.325803 (baseline: 2.331790)
- Sources included VellumK2T Fiction SFT, Novelist CoT Writing, and a mature-fiction corpus
- A targeted synthetic 8K-context recall test answered 3/3 planted phrase questions correctly; this is not a comprehensive quality or safety evaluation
Use
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
repo = "TidasSilva/SIGHA_GPT1.5_STORY"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.float16,
device_map="auto")
# For 15GB GPUs use load_in_4bit=True with a compatible bitsandbytes setup instead.
Important: Loading the unquantized merged 8B model requires approximately 16 GB just for weights, plus additional RAM/VRAM for inference. On a 15 GB T4, use 4-bit inference or CPU offload.
License and notices
Llama 3.1 is distributed under the Llama 3.1 Community License.
See the LICENSE and NOTICE files in this repository. The source Dolphin model and its original authors
must also be credited. Review the applicable acceptable-use terms before deploying.
- Downloads last month
- 15