From 3f90149ea7136a87e67a423fb20ffed0ae786586 Mon Sep 17 00:00:00 2001 From: Daniel Corin Date: Tue, 2 May 2023 08:53:15 -0400 Subject: [PATCH 1/3] Fix readme example, remove .DS_Store --- .DS_Store | Bin 6148 -> 0 bytes readme.md | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index c88a062b05be4fd1d362b3e4c6a7481e718b69d0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~O$x$5422WzLU7Zi%h`AUZ!n0Spcima5J4*Vx1OW>k_m#k8KJGkN^pg011%5 z4-v3?8#bF)Wh4O-Ab}?V`#vPNX$~z_{nLTqBLK8P*$r!-C7{U)&>UK-q5{*H9yD6j z#}KP~J2b_)99pW@cF`C;crrWIXQgOGwy`I%~QMGk}L;X0y%TE9jyNVZZH|!@{KyzrRiVBQB0*--!1inh( E0rZ6u#{d8T diff --git a/readme.md b/readme.md index dd98f5b..943b629 100644 --- a/readme.md +++ b/readme.md @@ -31,7 +31,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer model = AutoModelForCausalLM.from_pretrained("databricks/dolly-v2-12b") tokenizer = AutoTokenizer.from_pretrained("databricks/dolly-v2-12b") -schema = { +json_schema = { "type": "object", "properties": { "name": {"type": "string"}, From bc065bb3ba92c244d73183a376f7f3cf13cbbba4 Mon Sep 17 00:00:00 2001 From: Daniel Corin Date: Tue, 2 May 2023 08:54:08 -0400 Subject: [PATCH 2/3] Update .gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b8fe8b3..f56f35a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ jsonllm/__pycache__ .venv workspace.ipynb -dist \ No newline at end of file +dist +.DS_Store From 034622bd2085479a4654b51c977720fc8d3257ad Mon Sep 17 00:00:00 2001 From: rahul Date: Tue, 2 May 2023 16:32:40 -0400 Subject: [PATCH 3/3] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index dd98f5b..6ce2471 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ # Jsonformer: A Bulletproof Way to Generate Structured JSON from Language Models. -### Problem: Getting models to output structed JSON is hard +### Problem: Getting models to output structured JSON is hard ### Solution: Only generate the content tokens and fill in the fixed tokens