Taylor658/titan-hohmann-transfer-orbit
Viewer β’ Updated β’ 700 β’ 27
How to use Taylor658/Titan-Hohmann with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-text-to-text", model="Taylor658/Titan-Hohmann") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Taylor658/Titan-Hohmann", dtype="auto")How to use Taylor658/Titan-Hohmann with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Taylor658/Titan-Hohmann"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Taylor658/Titan-Hohmann",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/Taylor658/Titan-Hohmann
How to use Taylor658/Titan-Hohmann with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "Taylor658/Titan-Hohmann" \
--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": "Taylor658/Titan-Hohmann",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "Taylor658/Titan-Hohmann" \
--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": "Taylor658/Titan-Hohmann",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use Taylor658/Titan-Hohmann with Docker Model Runner:
docker model run hf.co/Taylor658/Titan-Hohmann
β¨ Updated to
mistralai/Pixtral-12B-Base-2409.
Fine-tuned variant of Pixtral 12B for orbital mechanics with emphasis on Hohmann transfer orbits. Supports multimodal (image + text) inputs and text outputs.
mistralai/Pixtral-12B-Base-2409from vllm import LLM
from vllm.sampling_params import SamplingParams
llm = LLM(model="mistralai/Pixtral-12B-Base-2409", tokenizer_mode="mistral")
sampling = SamplingParams(max_tokens=512, temperature=0.2)
messages = [
{
"role": "user",
"content": [
{"type": "text", "text": "Given this diagram, estimate the delta-v for a Hohmann transfer to Titan."},
{"type": "image_url", "image_url": {"url": "https://example.com/orbit_diagram.png"}}
]
}
]
resp = llm.chat(messages, sampling_params=sampling)
print(resp[0].outputs[0].text)
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "mistralai/Pixtral-12B-Base-2409"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto", device_map="auto")
prompt = "Compute approximate delta-v for a Hohmann transfer to Titan. State assumptions."
inputs = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=512, temperature=0.2)
print(tok.decode(out[0], skip_special_tokens=True))
Taylor658/titan-hohmann-transfer-orbitBase model
mistralai/Pixtral-12B-Base-2409