Instructions to use UniverseTBD/astrollama-7b-chat-alpha with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use UniverseTBD/astrollama-7b-chat-alpha with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="UniverseTBD/astrollama-7b-chat-alpha")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("UniverseTBD/astrollama-7b-chat-alpha") model = AutoModelForCausalLM.from_pretrained("UniverseTBD/astrollama-7b-chat-alpha", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use UniverseTBD/astrollama-7b-chat-alpha with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "UniverseTBD/astrollama-7b-chat-alpha" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "UniverseTBD/astrollama-7b-chat-alpha", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/UniverseTBD/astrollama-7b-chat-alpha
- SGLang
How to use UniverseTBD/astrollama-7b-chat-alpha 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 "UniverseTBD/astrollama-7b-chat-alpha" \ --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": "UniverseTBD/astrollama-7b-chat-alpha", "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 "UniverseTBD/astrollama-7b-chat-alpha" \ --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": "UniverseTBD/astrollama-7b-chat-alpha", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use UniverseTBD/astrollama-7b-chat-alpha with Docker Model Runner:
docker model run hf.co/UniverseTBD/astrollama-7b-chat-alpha
Are there astro RAGs available to download?
Hi! I found AstroLlama looking through the arXiv. We are a small research group that is interested in starting a project that requires a RAG containing scientific knowledge. Is there any chance the developers know if such a RAG has been made and publicly available containing astro (or really any technical or science) knowledge? That would save us considerable time! Thank You - Arpi
Hi Arpi, We are now working on making this a reality using the latest models. We will keep you updated! Thank you for your interest in our work.
Awesome, thanks!