Text Generation
Transformers
PyTorch
English
gpt_neox
gpt
llm
large language model
PAIX.Cloud
text-generation-inference
Instructions to use PAIXAI/Astrid-1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PAIXAI/Astrid-1B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="PAIXAI/Astrid-1B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("PAIXAI/Astrid-1B") model = AutoModelForCausalLM.from_pretrained("PAIXAI/Astrid-1B") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use PAIXAI/Astrid-1B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PAIXAI/Astrid-1B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PAIXAI/Astrid-1B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/PAIXAI/Astrid-1B
- SGLang
How to use PAIXAI/Astrid-1B 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 "PAIXAI/Astrid-1B" \ --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": "PAIXAI/Astrid-1B", "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 "PAIXAI/Astrid-1B" \ --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": "PAIXAI/Astrid-1B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use PAIXAI/Astrid-1B with Docker Model Runner:
docker model run hf.co/PAIXAI/Astrid-1B
Update README.md
Browse files
README.md
CHANGED
|
@@ -13,10 +13,16 @@ thumbnail: https://h2o.ai/etc.clientlibs/h2o/clientlibs/clientlib-site/resources
|
|
| 13 |
# Model Card
|
| 14 |
## Summary
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
This model was trained by [PAIX.Cloud](https://www.paix.cloud/).
|
| 17 |
- Wait list: [Wait List](https://www.paix.cloud/join-waitlist)
|
| 18 |
|
| 19 |
|
|
|
|
| 20 |
## Usage
|
| 21 |
|
| 22 |
To use the model with the `transformers` library on a machine with GPUs, first make sure you have the `transformers`, `accelerate` and `torch` libraries installed.
|
|
|
|
| 13 |
# Model Card
|
| 14 |
## Summary
|
| 15 |
|
| 16 |
+
This model, Astrid-1B-1, is a RWForCausalLM model for causal language modeling, designed to generate human-like text.
|
| 17 |
+
It's part of our mission to make AI technology accessible to everyone, focusing on personalization, data privacy, and transparent AI governance.
|
| 18 |
+
Trained in English, it's a versatile tool for a variety of applications.
|
| 19 |
+
This model is one of the many models available on our platform, and we currently have a 1B and 7B open-source model.
|
| 20 |
+
|
| 21 |
This model was trained by [PAIX.Cloud](https://www.paix.cloud/).
|
| 22 |
- Wait list: [Wait List](https://www.paix.cloud/join-waitlist)
|
| 23 |
|
| 24 |
|
| 25 |
+
|
| 26 |
## Usage
|
| 27 |
|
| 28 |
To use the model with the `transformers` library on a machine with GPUs, first make sure you have the `transformers`, `accelerate` and `torch` libraries installed.
|