Downloads · 30 days
135
6% of all-time downloads
pentagoniac/llamarine
llamarine is a text generation model from pentagoniac. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama2.
Llamarine is a specialized large language model fine-tuned for maritime navigation and seamanship. This is a merged version combining the base Llama-3.1-70B model with maritime-specific LoRA adapters.
Downloads · 30 days
135
6% of all-time downloads
All-time downloads
2.1K
Public
Parameters
70.6B
141 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors141 GB · 100%
From the Hugging Face model README
Llamarine is a specialized large language model fine-tuned for maritime navigation and seamanship. This is a merged version combining the base Llama-3.1-70B model with maritime-specific LoRA adapters.
This model excels in:
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("pentagoniac/llamarine")
model = AutoModelForCausalLM.from_pretrained(
"pentagoniac/llamarine",
torch_dtype=torch.bfloat16,
device_map="auto"
)
# Generate response
prompt = "What is dead reckoning navigation?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(
**inputs,
max_new_tokens=200,
temperature=0.7,
top_p=0.9,
do_sample=True
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
from vllm import LLM, SamplingParams
# Initialize model
llm = LLM(
model="pentagoniac/llamarine",
tensor_parallel_size=2, # Adjust based on your GPU setup
dtype="bfloat16",
gpu_memory_utilization=0.95, # Use 95% of GPU memory
max_model_len=8192 # Large context length for extended conversations
)
# Configure sampling
sampling_params = SamplingParams(
temperature=0.7,
top_p=0.9,
max_tokens=2000
)
# Generate response
prompt = "How do you anchor a ship in rough weather?"
outputs = llm.generate([prompt], sampling_params)
print(outputs[0].outputs[0].text)
"What is celestial navigation?"
"How do you plot a course using GPS?"
"Explain magnetic compass deviation and variation"
"What are the principles of dead reckoning?"
"What are the steps for anchoring in emergency conditions?"
"How do you perform a man overboard maneuver?"
"What is the proper procedure for docking in strong winds?"
"How do you calculate cargo stability?"
"What are the COLREGS rules for overtaking?"
"How do you signal distress at sea?"
"What are the requirements for crossing traffic separation schemes?"
"What should you do if you encounter a vessel not under command?"
max_model_len if you have memory constraintsThis model was fine-tuned on maritime navigation data including:
This model is part of the Llamarine project aimed at advancing AI assistance in maritime operations. For questions or contributions, please reach out through the Hugging Face community.
This model inherits the Llama 2 license from the base model. Please review the license terms before commercial use.
"The sea, once it casts its spell, holds one in its net of wonder forever." - Jacques Cousteau