Instructions to use thefrigidliquidation/opt-1.3b-lightnovels with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use thefrigidliquidation/opt-1.3b-lightnovels with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="thefrigidliquidation/opt-1.3b-lightnovels")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("thefrigidliquidation/opt-1.3b-lightnovels") model = AutoModelForCausalLM.from_pretrained("thefrigidliquidation/opt-1.3b-lightnovels") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use thefrigidliquidation/opt-1.3b-lightnovels with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "thefrigidliquidation/opt-1.3b-lightnovels" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "thefrigidliquidation/opt-1.3b-lightnovels", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/thefrigidliquidation/opt-1.3b-lightnovels
- SGLang
How to use thefrigidliquidation/opt-1.3b-lightnovels 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 "thefrigidliquidation/opt-1.3b-lightnovels" \ --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": "thefrigidliquidation/opt-1.3b-lightnovels", "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 "thefrigidliquidation/opt-1.3b-lightnovels" \ --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": "thefrigidliquidation/opt-1.3b-lightnovels", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use thefrigidliquidation/opt-1.3b-lightnovels with Docker Model Runner:
docker model run hf.co/thefrigidliquidation/opt-1.3b-lightnovels
OPT-1.3B fine-tuned on officially translated light novels.
Fine-tuned OPT-1.3b on 2,500 light novel volumes (~825MB of text).
| Epoch | Test Loss | Train Loss |
|---|---|---|
| 0 (Not fine-tuned) | 4.9080 | N/A |
| 1 | 2.1659 | 2.0625 |
| 2 | 2.0758 | 1.8504 |
| 3 | 2.0222 | 1.7778 |
| 4 | 1.9780 | 1.5146 |
| 5 | 1.9463 | 1.5302 |
- Downloads last month
- 6