Stuff like this shows how much better the commercial models are than local models. I’ve been playing around with fairly simple structured information extraction from news articles and fail to get any kind of consistent behavior from llama3.1:8b. Claude and chatGPT do exactly what I want without fail.
OpenAI stopped releasing information about their models after gpt-3, which was 175b, but the leaks and rumours that gpt-4 is an 8x220 billion parameter model are most certainly correct. 4o is likely a distilled 220b model. Other commercial offerings are going to be in the same ballpark. Comparing these to llama 3 8b is like comparing a bicycle or a car to a train or cruise ship when you need to transport a few dozen…
Extracting financial disclosure and police reports with OpenAI Structured Output
31–40 of 93 posts
Re: Extracting financial disclosure and police reports with OpenAI Structured Output
#32Earlier quoted context omitted.
I’ve been using jsonschema since forever with function calling. Does structured output just formalize things?
function calling provides a "hint" in the form of a JSON schema for an LLM to follow. the models are trained to follow provided schemas. If you have really complicated or deeply nested models, they can become less stable at generating schema-conformant JSON. Structured outputs apply a context-free grammar to the prediction generation so that, for each token generation, only tokens that generate a perfectly conformant…
Re: Extracting financial disclosure and police reports with OpenAI Structured Output
#33Earlier quoted context omitted.
I’ve been using jsonschema since forever with function calling. Does structured output just formalize things?
function calling provides a "hint" in the form of a JSON schema for an LLM to follow. the models are trained to follow provided schemas. If you have really complicated or deeply nested models, they can become less stable at generating schema-conformant JSON. Structured outputs apply a context-free grammar to the prediction generation so that, for each token generation, only tokens that generate a perfectly conformant…
Re: Extracting financial disclosure and police reports with OpenAI Structured Output
#34Earlier quoted context omitted.
OpenAI stopped releasing information about their models after gpt-3, which was 175b, but the leaks and rumours that gpt-4 is an 8x220 billion parameter model are most certainly correct. 4o is likely a distilled 220b model. Other commercial offerings are going to be in the same ballpark. Comparing these to llama 3 8b is like comparing a bicycle or a car to a train or cruise ship when you need to transport a few dozen…
Any pointers on where we can check the best local models per amount of VRAM available? I only have consumer level cards available, but I would think something that just fits in to a 24Gb card should noticably outperform something scaled for an 8Gb card, yes?
Re: Extracting financial disclosure and police reports with OpenAI Structured Output
#35Re: Extracting financial disclosure and police reports with OpenAI Structured Output
#36Earlier quoted context omitted.
Combining google's ocr with llm gives OCR superpowers. Tell the llm the text is from an ocr and ask it to correct it.
That sounds like it could be very dangerous when the LLM gets it wrong...
Re: Extracting financial disclosure and police reports with OpenAI Structured Output
#37We used GPT 4o for more or less the same stuff. Got a boatload of scanned bills we had to digitize, and GPT really nailed the task. Made a schema, and just fed the model all the bills. Worked better than any OCR we tried.
Re: Extracting financial disclosure and police reports with OpenAI Structured Output
#38Stuff like this shows how much better the commercial models are than local models. I’ve been playing around with fairly simple structured information extraction from news articles and fail to get any kind of consistent behavior from llama3.1:8b. Claude and chatGPT do exactly what I want without fail.
https://lamini-ai.github.io/inference/json_output
Most of these models can read. If the relevant facts are in the prompt, they can almost always extract them correctly.
Of course bigger models do better on more complex tasks and reasoning unless you use finetuning or memory tuning.
Re: Extracting financial disclosure and police reports with OpenAI Structured Output
#39Stuff like this shows how much better the commercial models are than local models. I’ve been playing around with fairly simple structured information extraction from news articles and fail to get any kind of consistent behavior from llama3.1:8b. Claude and chatGPT do exactly what I want without fail.
Re: Extracting financial disclosure and police reports with OpenAI Structured Output
#40Stuff like this shows how much better the commercial models are than local models. I’ve been playing around with fairly simple structured information extraction from news articles and fail to get any kind of consistent behavior from llama3.1:8b. Claude and chatGPT do exactly what I want without fail.