Text Generation
Transformers
Safetensors
code
fela
fourier-neural-operator
fno
gated-deltanet
cpu
on-device
autocomplete
fill-in-the-middle
constant-memory
custom_code
Eval Results (legacy)
Instructions to use lowdown-labs/fela-autocomplete with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lowdown-labs/fela-autocomplete with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="lowdown-labs/fela-autocomplete", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("lowdown-labs/fela-autocomplete", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use lowdown-labs/fela-autocomplete with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lowdown-labs/fela-autocomplete" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lowdown-labs/fela-autocomplete", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/lowdown-labs/fela-autocomplete
- SGLang
How to use lowdown-labs/fela-autocomplete 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 "lowdown-labs/fela-autocomplete" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lowdown-labs/fela-autocomplete", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "lowdown-labs/fela-autocomplete" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lowdown-labs/fela-autocomplete", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use lowdown-labs/fela-autocomplete with Docker Model Runner:
docker model run hf.co/lowdown-labs/fela-autocomplete
| # Quickstart | |
| Load the FELA LLM 1.5 code model and run a real fill in the middle completion on CPU. | |
| Uses the self contained loader in `../modeling.py`. | |
| ## Steps | |
| 1. Install the pinned requirements (CPU PyTorch): | |
| ```bash | |
| pip install -r requirements.txt | |
| ``` | |
| 2. Point the loader at the directory that holds the weights (this repo). The model | |
| ships as `model.safetensors` next to `config.json` and `tokenizer.json`: | |
| ```bash | |
| export FELA_LLM_WEIGHTS=/path/to/this/repo | |
| python run.py | |
| ``` | |
| ## Load from Python | |
| ```python | |
| from modeling import load_model | |
| m = load_model("/path/to/this/repo") | |
| # Fill in the middle: give the code before and after the cursor, get the middle | |
| r = m.complete("def add(a, b):\n ", suffix="\nresult = add(2, 3)\n") | |
| print(r["middle"]) # e.g. " return a + b" | |
| # Plain autocomplete: continue a single line | |
| print(m.complete("import numpy as ")["middle"]) # e.g. " np" | |
| ``` | |
| `complete` is greedy by default, so the same prompt gives the same real output every | |
| time. When you pass a non empty `suffix` and the tokenizer has the FIM tokens, it uses | |
| the fill in the middle layout `<|fim_prefix|> P <|fim_suffix|> S <|fim_middle|>` and | |
| writes the code that belongs between them; otherwise it continues the prefix. | |
| ## What to expect | |
| This is the final fill in the middle model. Single line patterns land well (imports, | |
| obvious returns, boilerplate); multi line blocks and novel logic are outside what it is | |
| built for. Every completion is a genuine forward of the model, never a lookup. The | |
| reference load path here runs on CPU with no GPU. For fast production serving the same | |
| weights run int8 on the CPU native FELA server. | |