[IMP] model Card according to needs
Browse files
README.md
CHANGED
@@ -1,3 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# Fine-Tuned SQLCoder-7B for Odoo 17
|
2 |
|
3 |
This is a fine-tuned version of [defog/sqlcoder-7b-2](https://huggingface.co/defog/sqlcoder-7b-2) trained on Odoo 17 database schemas and queries.
|
@@ -68,4 +79,4 @@ Find all customers who have orders with a total amount greater than 1000
|
|
68 |
inputs = tokenizer(prompt, return_tensors="pt")
|
69 |
outputs = model.generate(**inputs, max_new_tokens=300)
|
70 |
sql_query = tokenizer.decode(outputs[0], skip_special_tokens=True).split("### SQL Query")[1].strip()
|
71 |
-
print(sql_query)
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
datasets:
|
4 |
+
- VPCSinfo/odoo-sql-query-dataset
|
5 |
+
base_model:
|
6 |
+
- defog/sqlcoder-7b-2
|
7 |
+
pipeline_tag: table-question-answering
|
8 |
+
library_name: adapter-transformers
|
9 |
+
tags:
|
10 |
+
- code
|
11 |
+
---
|
12 |
# Fine-Tuned SQLCoder-7B for Odoo 17
|
13 |
|
14 |
This is a fine-tuned version of [defog/sqlcoder-7b-2](https://huggingface.co/defog/sqlcoder-7b-2) trained on Odoo 17 database schemas and queries.
|
|
|
79 |
inputs = tokenizer(prompt, return_tensors="pt")
|
80 |
outputs = model.generate(**inputs, max_new_tokens=300)
|
81 |
sql_query = tokenizer.decode(outputs[0], skip_special_tokens=True).split("### SQL Query")[1].strip()
|
82 |
+
print(sql_query)
|