Felladrin/onnx-zephyr-smol_llama-100m-dpo-full
By Felladrin · ↓ 4 · ♥ 1 · Updated 2023-11-28
What's in this repo
This page lists the files in Felladrin/onnx-zephyr-smol_llama-100m-dpo-full, including decoder_model_merged.onnx, decoder_model_merged_quantized.onnx.
- 2 ONNX models (.onnx files)
- 11 files, including 6 .json, 2 .onnx, 1 .md, 1 .model
- Last updated 2023-11-28
ONNX files
| File | Size | Download |
|---|---|---|
| onnx/decoder_model_merged.onnx | — | Download |
| onnx/decoder_model_merged_quantized.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
INT8 ONNX version of amazingvince/zephyr-smol_llama-100m-dpo-full to use with Transformers.js.
Usage
import { pipeline } from '@xenova/transformers';
const prompt = `<|system|>
You are a helpful assistant who answers the user's questions.
<|user|>
Question: What is a dog?
<|assistant|>
Answer: A dog is a four-legged, domesticated animal that is a member of the class Mammalia, which includes all mammals. Dogs are known for their loyalty, playfulness, and ability to be trained for various tasks. They are also used for hunting, herding, and as service animals.
<|user|>
Question: What is the capital of France?
<|assistant|>
Answer: The capital of France is Paris. Paris is located in the north-central region of France and is known for its famous landmarks, such as the Eiffel Tower, the Louvre Museum, and Notre-Dame Cathedral.
<|user|>
Question: What is the color of an apple?
<|assistant|>`;
const generator = await pipeline('text-generation', 'Felladrin/onnx-zephyr-smol_llama-100m-dpo-full', { quantized: false });
const output = await generator(prompt, { max_new_tokens: 19 });
console.log(output[0].generated_text); // "Answer: The color of an apple is a combination of red, yellow, and orange."
Model info
text-generation
transformers.js
transformers.js
onnx
llama
text-generation
conversational
base_model:amazingvince/zephyr-smol_llama-100m-dpo-full
base_model:quantized:amazingvince/zephyr-smol_llama-100m-dpo-full
license:apache-2.0
region:us
↓ 4
♥ 1
Created: 2023-11-28
Updated: 2023-11-28
View on Hugging FaceFiles (11)
.gitattributes
README.md
config.json
generation_config.json
onnx/decoder_model_merged.onnx
ONNX
quantize_config.json
special_tokens_map.json
tokenizer.json
tokenizer.model
tokenizer_config.json