Magellanic-Llama-70B-r999 is a Llama-based model fine-tuned from the DeepSeek R1 Distill 70B FT Llama, a model trained via large-scale reinforcement learning (RL) without supervised fine-tuning (SFT) as a preliminary step. This model has demonstrated remarkable performance in reasoning. With RL, it has been trained on nearly 1 million entries of data, leading to increased improvements in safety and ensuring retention of factual accuracy.
Additionally, it addresses issues such as endless repetition, poor readability, and language mixing. This approach allows the model to explore chain-of-thought (CoT) reasoning for solving complex problems, improving reasoning patterns, and aligning with human preferences. Furthermore, two SFT stages serve as the seed for the model's reasoning and non-reasoning capabilities.
Use with Transformers
Starting with
transformers >= 4.45.0
, you can run conversational inference using the Transformers
pipeline
abstraction or by leveraging the Auto classes with the
generate()
function.
Make sure to update your Transformers installation via:
pip install --upgrade transformers
Example Usage:
import transformers
import torch
model_id = "prithivMLmods/Magellanic-Llama-70B-r999"
pipeline = transformers.pipeline(
"text-generation",
model=model_id,
model_kwargs={"torch_dtype": torch.bfloat16},
device_map="auto",
)
messages = [
{"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
{"role": "user", "content": "Who are you?"},
]
outputs = pipeline(
messages,
max_new_tokens=256,
)
print(outputs[0]["generated_text"][-1])
Tool Use with Transformers
LLaMA-3.3 supports multiple tool use formats. You can see a full guide to prompt formatting
here
.
Tool use is also supported through
chat templates
in Transformers.
Example Tool Integration:
# Define a tooldefget_current_temperature(location: str) -> float:
""" Get the current temperature at a location. Args: location: The location to get the temperature for, in the format "City, Country" Returns: The current temperature at the specified location in the specified units, as a float. """return22.0# A real function should retrieve actual temperature data!# Create a chat and apply the chat template
messages = [
{"role": "system", "content": "You are a bot that responds to weather queries."},
{"role": "user", "content": "Hey, what's the temperature in Paris right now?"}
]
inputs = tokenizer.apply_chat_template(messages, tools=[get_current_temperature], add_generation_prompt=True)
If the model generates a tool call, append it to the chat like so:
Magellanic-Llama-70B-r999 huggingface.co is an AI model on huggingface.co that provides Magellanic-Llama-70B-r999's model effect (), which can be used instantly with this prithivMLmods Magellanic-Llama-70B-r999 model. huggingface.co supports a free trial of the Magellanic-Llama-70B-r999 model, and also provides paid use of the Magellanic-Llama-70B-r999. Support call Magellanic-Llama-70B-r999 model through api, including Node.js, Python, http.
Magellanic-Llama-70B-r999 huggingface.co is an online trial and call api platform, which integrates Magellanic-Llama-70B-r999's modeling effects, including api services, and provides a free online trial of Magellanic-Llama-70B-r999, you can try Magellanic-Llama-70B-r999 online for free by clicking the link below.
prithivMLmods Magellanic-Llama-70B-r999 online free url in huggingface.co:
Magellanic-Llama-70B-r999 is an open source model from GitHub that offers a free installation service, and any user can find Magellanic-Llama-70B-r999 on GitHub to install. At the same time, huggingface.co provides the effect of Magellanic-Llama-70B-r999 install, users can directly use Magellanic-Llama-70B-r999 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Magellanic-Llama-70B-r999 install url in huggingface.co: