Loading…
Loading…
A compact Llama-based language model optimized for efficient inference and deployment. This is the public version with open access.
NanoLlama is a small-scale language model based on the Llama architecture, designed for lightweight applications and resource-constrained environments. This model provides a good balance between performance and computational efficiency.
This model can be used for:
The model can be fine-tuned for specific tasks such as:
from transformers import AutoTokenizer, AutoModelForCausalLM
# Load the model and tokenizer
model_name = "svc-nai-cci/nanollama-public"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Generate text
input_text = "Hello, how are you?"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_length=100, temperature=0.7)
generated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(generated_text)
The model uses the standard Llama architecture with:
If you use this model, please cite:
@misc{nanollama2024,
title={NanoLlama: A Compact Llama-based Language Model},
author={svc-nai-cci},
year={2024},
url={https://huggingface.co/svc-nai-cci/nanollama-public}
}
For questions or issues, please contact: svc-nai-cci