Instructions to use prithivMLmods/Flerovium-Llama-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/Flerovium-Llama-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prithivMLmods/Flerovium-Llama-3B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("prithivMLmods/Flerovium-Llama-3B") model = AutoModelForCausalLM.from_pretrained("prithivMLmods/Flerovium-Llama-3B") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use prithivMLmods/Flerovium-Llama-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/Flerovium-Llama-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Flerovium-Llama-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/Flerovium-Llama-3B
- SGLang
How to use prithivMLmods/Flerovium-Llama-3B 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 "prithivMLmods/Flerovium-Llama-3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Flerovium-Llama-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "prithivMLmods/Flerovium-Llama-3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Flerovium-Llama-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use prithivMLmods/Flerovium-Llama-3B with Docker Model Runner:
docker model run hf.co/prithivMLmods/Flerovium-Llama-3B
Flerovium-Llama-3B
Flerovium-Llama-3B is a compact, general-purpose language model based on the powerful llama 3.2 (llama) architecture. It is fine-tuned for a broad range of tasks including mathematical reasoning, code generation, and natural language understanding, making it a versatile choice for developers, students, and researchers seeking reliable performance in a lightweight model.
GGUF: https://huggingface.co/prithivMLmods/Flerovium-Llama-3B-GGUF
Key Features
LLaMA 3.2 Backbone Built on Meta’s LLaMA 3.2 (3B) architecture, offering state-of-the-art performance in a compact footprint with better instruction-following and multilingual support.
Multi-Task Fine-Tuning Finetuned on a modular and diverse dataset combining math, code, and general-purpose tasks—enabling clear explanations, problem solving, and practical utility.
Strong Mathematical Reasoning Handles algebra, calculus, logic, and numerical problems with step-by-step clarity. Ideal for tutoring and academic use cases.
Coding Capabilities Understands and generates clean, bug-free code in Python, JavaScript, C++, and more. Also excels at debugging, documentation, and logic explanations.
General-Purpose Utility Performs well across everyday reasoning tasks—summarization, Q&A, content drafting, and structured generation (Markdown, LaTeX, JSON).
Efficient & Deployable With only 3 billion parameters, Flerovium-Llama-3B is resource-efficient and suitable for local deployment, offline tools, and edge AI setups.
Quickstart with Transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "prithivMLmods/Flerovium-Llama-3B"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
prompt = "Explain how to solve a quadratic equation step-by-step."
messages = [
{"role": "system", "content": "You are a helpful AI assistant for math and coding."},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=512
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(response)
Intended Use
- General-purpose text and reasoning
- Math tutoring and problem-solving
- Code generation, review, and debugging
- Content drafting in Markdown, LaTeX, and JSON
- Lightweight deployment in educational and developer environments
Limitations
- Limited context length compared to large models (>7B)
- May require prompt refinement for very complex code/math problems
- Not ideal for long-form creative writing or deep conversational tasks
- Knowledge is limited to training data (no real-time web search)
References
- Downloads last month
- 9
