How to use from
vLLM
Install from pip and serve model
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "ffurfaro/Titans-OpenELM-1_1B"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "ffurfaro/Titans-OpenELM-1_1B",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Use Docker
docker model run hf.co/ffurfaro/Titans-OpenELM-1_1B
Quick Links

Titanesque-OpenELM-1_1B

arXiv PyPI Release Documentation HuggingFace

Titanesque version of apple/OpenELM-1_1B with parallel linearized attention (TPTT 😊) and PEFT.

The architecture was presented in the paper TPTT.

Model list

Classic model parameter with LiZA injection :

Subfolder Max Self Attn Length Mag Weight Cross Gate Max Chunk Size Bidirectional LoRA Description
delta_rule 8192 (default) 0.5 False 64 False Yes Parallel linearized attention with delta_rule operator
delta_rule_gelu 8192 (default) 0.5 False 64 False Yes Non-linear operator with gelu activation
delta_product 8192 (default) 0.5 False 64 False Yes Second order operator with derivative trick
delta_product_r 8192 (default) 0.5 False 64 False Yes Second order operator with rotative trick
delta_product_c 8192 (default) 0.5 False 64 False Yes Second order operator with combined trick

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained(
"ffurfaro/Titanesque-OpenELM-1_1B",
subfolder="tptt_subfolder", # see in repo tree
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained("ffurfaro/apple/OpenELM-1_1B")

prompt = "Your prompt here"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs, skip_special_tokens=True))

Citation & Contact

If you use TPTT in your academic work, please cite Furfaro. For questions or support, please open an issue on the GitHub repository or contact the maintainer.


Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ffurfaro/Titans-OpenELM-1_1B

Finetuned
(10)
this model

Dataset used to train ffurfaro/Titans-OpenELM-1_1B

Paper for ffurfaro/Titans-OpenELM-1_1B