Text Generation
Transformers
PyTorch
Safetensors
English
gpt2
Trained with AutoTrain
text-generation-inference
Instructions to use CrabfishAI/NeXGen-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CrabfishAI/NeXGen-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CrabfishAI/NeXGen-small")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("CrabfishAI/NeXGen-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CrabfishAI/NeXGen-small with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CrabfishAI/NeXGen-small" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CrabfishAI/NeXGen-small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CrabfishAI/NeXGen-small
- SGLang
How to use CrabfishAI/NeXGen-small 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 "CrabfishAI/NeXGen-small" \ --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": "CrabfishAI/NeXGen-small", "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 "CrabfishAI/NeXGen-small" \ --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": "CrabfishAI/NeXGen-small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use CrabfishAI/NeXGen-small with Docker Model Runner:
docker model run hf.co/CrabfishAI/NeXGen-small
Commit History
-
Update README.md
9283b4f
-
Update README.md
e5f19bf
-
Update README.md
9d6b0f9
-
Update README.md
ff67573 -
Update README.md
82b898f
-
Update README.md
7f21fd7
-
Update README.md
fe4fdc5 -
Update README.md
88820bf -
Update README.md
9bf818b -
Update README.md
1be8228 -
Update README.md
68daafb -
Update README.md
7b043bd -
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (d2d050fdd69914551aae33906cdd85c45c4d00ae) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>3908bfb -
Update config.json
07b0b67 -
Update config.json
77a1f35 -
Upload 11 files
94d1c94 -
Delete NeXGen
76ce9d9 -
Update README.md
737574f -
Delete NeXGen/README.md
60b6304 -
Update README.md
5b11a19 -
Update README.md
9e08d5a -
Update README.md
c78ac05 -
Update README.md
ff3abe5 -
Update README.md
489e56d -
Update README.md
beec925 -
Update README.md
2f64130 -
Update README.md
fb99587 -
Update README.md
3934e58 -
Upload 11 files
662e82c -
initial commit
d59ac90