IPAC-1.7B-Exp-v2 - an experimental model for text auto-completion
2 min read
IPAC-1.7B-Exp-v2 is an early experimental language model with 1.7 billion parameters, fine-tuned for low-latency text auto-completion and token sequence continuation tasks. Built on the hybrid convolution/attention LFM3-1.7B architecture from Liquid AI, it is designed for research purposes and prototyping. The model works directly with raw text prefixes without using chat templates and is useful for developers building code or text auto-completion tools on edge or server devices.
Key features
- Base architecture: Built on the hybrid LFM3 architecture with approximately 1.7 billion parameters in BF16 format.
- Low latency: Optimized for instant text continuation and next-token prediction.
- Research phase: An early experimental version (`exp-v2`) designed to evaluate auto-completion adaptation.
- License: Distributed under the terms of the Liquid AI non-commercial license and the additional InferencePort agreement.
What you can do
- Editor integration: Set up local text or code auto-completion in development environments using the
transformerslibrary. - Research: Conduct offline benchmarking and evaluate the performance of the hybrid architecture on prefix continuation tasks.
- Prototyping: Build custom tools for fast raw text-based prompt generation.
Example
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "inferenceport/ipac-1.7b-exp-v2"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True,
)
prefix = "To configure the S3-compatible bucket endpoint in your workspace, set the"
inputs = tokenizer(prefix, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=16,
do_sample=False,
pad_token_id=tokenizer.eos_token_id,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Read more
DetailsBenchmarks (Top-1 Accuracy): 48.57% (LFM3-1.7B)
Benchmarks (Top-5 Accuracy): 73.37% (LFM3-1.7B)
Limitations: Not intended for chat, instructions, or commercial use without a license.
Recommended settings: greedy decoding (temperature=0.0) and a limit of 8-24 tokens.










Comments