Instructions to use Crataco/AID-Neo-125M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Crataco/AID-Neo-125M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Crataco/AID-Neo-125M")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Crataco/AID-Neo-125M") model = AutoModelForCausalLM.from_pretrained("Crataco/AID-Neo-125M") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Crataco/AID-Neo-125M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Crataco/AID-Neo-125M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Crataco/AID-Neo-125M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Crataco/AID-Neo-125M
- SGLang
How to use Crataco/AID-Neo-125M 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 "Crataco/AID-Neo-125M" \ --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": "Crataco/AID-Neo-125M", "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 "Crataco/AID-Neo-125M" \ --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": "Crataco/AID-Neo-125M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Crataco/AID-Neo-125M with Docker Model Runner:
docker model run hf.co/Crataco/AID-Neo-125M
Update README.md
Browse files
README.md
CHANGED
|
@@ -3,6 +3,10 @@ language: en
|
|
| 3 |
license: mit
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
# AID-Neo-125M
|
| 7 |
|
| 8 |
## Model description
|
|
|
|
| 3 |
license: mit
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
---
|
| 6 |
+
|
| 7 |
+
# **UPDATE (2023-09-23):**
|
| 8 |
+
This model is obsolete. Thanks to quantization you can run AI Dungeon 2 Classic (a 1.5B model) under equivalent hardware. [See here](https://huggingface.co/Crataco/ggml-ai-dungeon-2-classic).
|
| 9 |
+
***
|
| 10 |
# AID-Neo-125M
|
| 11 |
|
| 12 |
## Model description
|