How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="SkunkworksAI/tinyfrank-1.4B")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("SkunkworksAI/tinyfrank-1.4B")
model = AutoModelForCausalLM.from_pretrained("SkunkworksAI/tinyfrank-1.4B")
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]:]))
Quick Links

Undi95 type frankenstein of TinyLLama 1.1b https://github.com/jzhang38/TinyLlama https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0

GGUF custom quants included

The secret sauce:

slices:
  - sources:
    - model: "TinyLlama/TinyLlama-1.1B-Chat-v1.0"
      layer_range: [0, 14]
  - sources:
    - model: "TinyLlama/TinyLlama-1.1B-Chat-v1.0"
      layer_range: [8, 22]
merge_method: passthrough
dtype: bfloat16

How to run as gguf:

git clone https://github.com/ggerganov/llama.cpp && cd llama.cpp && make -j
wget https://huggingface.co/SkunkworksAI/tinyfrank-1.4B/resolve/main/tinyfrank-q6L.gguf
./server -m tinyfrank-q6L.gguf --host "my.internal.ip.or.my.cloud.host.name.goes.here.com" -c 512
Downloads last month
460
Safetensors
Model size
1B params
Tensor type
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Spaces using SkunkworksAI/tinyfrank-1.4B 16