Instructions to use zh1124/typst-autocomplete-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use zh1124/typst-autocomplete-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-7B") model = PeftModel.from_pretrained(base_model, "zh1124/typst-autocomplete-lora") - Notebooks
- Google Colab
- Kaggle
Download continue-example.yaml from zh1124/typst-autocomplete-lora: direct link, hf CLI and curl.
- Browser
- Download file 703 Bytes
-
https://huggingface.co/zh1124/typst-autocomplete-lora/resolve/main/continue-example.yaml
- Command line
-
hf download hf://zh1124/typst-autocomplete-lora/continue-example.yaml
-
curl -L -o continue-example.yaml https://huggingface.co/zh1124/typst-autocomplete-lora/resolve/main/continue-example.yaml
703 Bytes
| name: Main Config | |
| version: 1.0.0 | |
| schema: v1 | |
| models: | |
| - name: Qwen Typst Autocomplete 7B | |
| provider: ollama | |
| model: qwen2.5-coder-typst:7b | |
| roles: | |
| - autocomplete | |
| defaultCompletionOptions: | |
| temperature: 0 | |
| maxTokens: 96 | |
| keepAlive: 1800 | |
| stop: | |
| - "<|fim_prefix|>" | |
| - "<|fim_suffix|>" | |
| - "<|fim_middle|>" | |
| - "<|endoftext|>" | |
| - "<|fim_pad|>" | |
| autocompleteOptions: | |
| template: "<|fim_prefix|>{{{prefix}}}<|fim_suffix|>{{{suffix}}}<|fim_middle|>" | |
| maxPromptTokens: 2048 | |
| debounceDelay: 300 | |
| maxSuffixPercentage: 0.2 | |
| prefixPercentage: 0.6 | |
| onlyMyCode: false | |
| useCache: true | |
| useImports: true | |