Uncovering a Massive z~7.65 Galaxy Hosting a Heavily Obscured Radio-Loud QSO Candidate in COSMOS-Web
Paper • 2308.12823 • Published
How to use RichardErkhov/universeTBD_-_astrollama-gguf with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf RichardErkhov/universeTBD_-_astrollama-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf RichardErkhov/universeTBD_-_astrollama-gguf:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf RichardErkhov/universeTBD_-_astrollama-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf RichardErkhov/universeTBD_-_astrollama-gguf:Q4_K_M
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf RichardErkhov/universeTBD_-_astrollama-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf RichardErkhov/universeTBD_-_astrollama-gguf:Q4_K_M
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf RichardErkhov/universeTBD_-_astrollama-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf RichardErkhov/universeTBD_-_astrollama-gguf:Q4_K_M
docker model run hf.co/RichardErkhov/universeTBD_-_astrollama-gguf:Q4_K_M
How to use RichardErkhov/universeTBD_-_astrollama-gguf with Ollama:
ollama run hf.co/RichardErkhov/universeTBD_-_astrollama-gguf:Q4_K_M
How to use RichardErkhov/universeTBD_-_astrollama-gguf with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for RichardErkhov/universeTBD_-_astrollama-gguf to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for RichardErkhov/universeTBD_-_astrollama-gguf to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for RichardErkhov/universeTBD_-_astrollama-gguf to start chatting
How to use RichardErkhov/universeTBD_-_astrollama-gguf with Docker Model Runner:
docker model run hf.co/RichardErkhov/universeTBD_-_astrollama-gguf:Q4_K_M
How to use RichardErkhov/universeTBD_-_astrollama-gguf with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull RichardErkhov/universeTBD_-_astrollama-gguf:Q4_K_M
lemonade run user.universeTBD_-_astrollama-gguf-Q4_K_M
lemonade list
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Quantization made by Richard Erkhov.
astrollama - GGUF
| Name | Quant method | Size |
|---|---|---|
| astrollama.Q2_K.gguf | Q2_K | 2.36GB |
| astrollama.IQ3_XS.gguf | IQ3_XS | 2.6GB |
| astrollama.IQ3_S.gguf | IQ3_S | 2.75GB |
| astrollama.Q3_K_S.gguf | Q3_K_S | 2.75GB |
| astrollama.IQ3_M.gguf | IQ3_M | 2.9GB |
| astrollama.Q3_K.gguf | Q3_K | 3.07GB |
| astrollama.Q3_K_M.gguf | Q3_K_M | 3.07GB |
| astrollama.Q3_K_L.gguf | Q3_K_L | 3.35GB |
| astrollama.IQ4_XS.gguf | IQ4_XS | 3.4GB |
| astrollama.Q4_0.gguf | Q4_0 | 3.56GB |
| astrollama.IQ4_NL.gguf | IQ4_NL | 3.58GB |
| astrollama.Q4_K_S.gguf | Q4_K_S | 3.59GB |
| astrollama.Q4_K.gguf | Q4_K | 3.8GB |
| astrollama.Q4_K_M.gguf | Q4_K_M | 3.8GB |
| astrollama.Q4_1.gguf | Q4_1 | 3.95GB |
| astrollama.Q5_0.gguf | Q5_0 | 4.33GB |
| astrollama.Q5_K_S.gguf | Q5_K_S | 4.33GB |
| astrollama.Q5_K.gguf | Q5_K | 4.45GB |
| astrollama.Q5_K_M.gguf | Q5_K_M | 4.45GB |
| astrollama.Q5_1.gguf | Q5_1 | 4.72GB |
| astrollama.Q6_K.gguf | Q6_K | 5.15GB |
| astrollama.Q8_0.gguf | Q8_0 | 6.67GB |
Play with the model in our Hugging Face space! https://huggingface.co/spaces/universeTBD/astrollama
from transformers import AutoModelForCausalLM
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained(
pretrained_model_name_or_path="universeTBD/astrollama"
)
model = AutoModelForCausalLM.from_pretrained(
pretrained_model_name_or_path="universeTBD/astrollama",
device_map="auto",
)
import torch
from transformers import pipeline
generator = pipeline(
task="text-generation",
model=model,
tokenizer=tokenizer,
device_map="auto"
)
# Taken from https://arxiv.org/abs/2308.12823
prompt = "In this letter, we report the discovery of the highest redshift, " \
"heavily obscured, radio-loud QSO candidate selected using JWST NIRCam/MIRI, " \
"mid-IR, sub-mm, and radio imaging in the COSMOS-Web field. "
# For reproducibility
torch.manual_seed(42)
generated_text = generator(
prompt,
do_sample=True,
max_length=512
)
texts = [
"Abstract 1",
"Abstract 2"
]
inputs = tokenizer(
texts,
return_tensors="pt",
return_token_type_ids=False,
padding=True,
truncation=True,
max_length=4096
)
inputs.to(model.device)
outputs = model(**inputs, output_hidden_states=True)
# Last layer of the hidden states. Get average embedding of all tokens
embeddings = outputs["hidden_states"][-1][:, 1:, ...].mean(1).detach().cpu().numpy()
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit