Downloads · 30 days
21
12% of all-time downloads
jimfhahn/bibframe-olmo-1b-onnx
bibframe-olmo-1b-onnx is a text generation model from jimfhahn. Use it when you need the model to write or continue text. It is set up for transformers.js. The card lists the license as apache-2.0.
Fine-tuned OLMo-1B model for correcting BIBFRAME RDF/XML records, exported for browser-based inference with Transformers.js and WebGPU.
Downloads · 30 days
21
12% of all-time downloads
All-time downloads
172
Public
Repo size
15.6 GB
Likes
0
Public
Click a slice to open those files.
.onnx_data4.7 GB · 67%
From the Hugging Face model README
Fine-tuned OLMo-1B model for correcting BIBFRAME RDF/XML records, exported for browser-based inference with Transformers.js and WebGPU.
import { pipeline } from '@huggingface/transformers';
const generator = await pipeline(
'text-generation',
'jimfhahn/bibframe-olmo-1b-onnx',
{ device: 'webgpu', dtype: 'fp16' }
);
const result = await generator(prompt, {
max_new_tokens: 512,
temperature: 0.3,
});
The model was trained with ChatML format:
<|im_start|>system
You are a BIBFRAME expert assistant...<|im_end|>
<|im_start|>user
Fix the following invalid BIBFRAME RDF/XML:
...
<|im_end|>
<|im_start|>assistant