Skip to content

Commit c1a52fc

Browse files
committed
Merge branch 'ejaz-updates' of github.com:oracle-devrel/technology-engineering into ejaz-updates
2 parents e1db688 + 4c3c5dd commit c1a52fc

File tree

7 files changed

+293
-12
lines changed

7 files changed

+293
-12
lines changed

cloud-infrastructure/ai-infra-gpu/GPU/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# GPU compute instances
1+
# GPU Compute Instances
22

33
This repository contains detailed information related to Oracle Cloud Infrastructure GPU compute instances.
44

@@ -23,6 +23,8 @@ Reviewed: 26.02.20224
2323
- Powering protein large language models in antibody discovery on OCI
2424
- [Customer sentiment analysis using VM.GPU.A10](https://blogs.oracle.com/cloud-infrastructure/post/oci-ai-language-nonenglish-language-use-case)
2525
- This experiment involved deploying a VM.GPU.A10 instance to run Python code, translating approximately 1,100 hotel reviews from Hebrew to English using AlephBERT and Google Translate
26+
- [Pioneering de novo antibody design with OCI, supporting Silica Corpora’s AI mission for unmatched precision and efficacy](https://blogs.oracle.com/cloud-infrastructure/post/de-novo-antibody-design-oci-silica-corpora)
27+
- About the collaboration between Silica Corpora and Oracle Cloud Infrastructure in leveraging generative AI and robust cloud capabilities to revolutionize de novo antibody design for enhanced precision and efficacy in drug development
2628

2729

2830
## LiveLabs
@@ -45,7 +47,7 @@ Reviewed: 26.02.20224
4547
## Re-useable Assets
4648

4749
- [Navigating the AI Revolution: Opportunities and Challenges - German - efcom Symposium 2023](https://www.youtube.com/watch?v=r_ZG2sUzhqo)
48-
- For all German speakers interested in hearing high-level about the foundations of GPU, what AI is (and how it is connected to Machine Learning, Data Science, LLM, GenAI) and how Oracle is approaching it.
50+
- For all German speakers interested in hearing high-level about the foundations of GPU, what AI is (and how it is connected to Machine Learning, Data Science, LLM, GenAI), and how Oracle is approaching it.
4951

5052
# Useful Links
5153

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# Overview
2+
3+
This repository provides a step-by-step tutorial for deploying and using [Mistral 7B Instruct](https://mistral.ai/technology/#models) Large Language Model using the [vLLM](https://github.com/vllm-project/vllm?tab=readme-ov-file) library.
4+
5+
# Requirements
6+
7+
* An OCI tenancy with A10 GPU quota.
8+
* A [Huggingface](https://huggingface.co/) account with a valid Auth Token.
9+
10+
# Model Deployment
11+
12+
## Mistral models
13+
14+
[Mistral.ai](https://mistral.ai/) is a French AI startup that develop Large Language Models (LLMs). Mistral 7B is the small yet powerful open model that supports English and code. The Mistral 7B Instruct is a chat optimized version of Mistral 7B. Mixtral 8x7B is a 7B sparse Mixture-of-Experts that supports French, Italian, German and Spanish on top of English and code (stronger than Mistral 7B). It uses 12B parameters out of 45B total.
15+
16+
## vLLM Library
17+
18+
vLLM is an alternative model serving solution to NVIDIA Triton. It is easy to use as it comes as a preconfigured container.
19+
20+
## Instance Configuration
21+
22+
In this example a single A10 GPU VM shape, codename VM.GPU.A10.1, is used. The image is the NVIDIA GPU Cloud Machine image from the OCI marketplace. A boot volume of 200 GB is also recommended.
23+
24+
## Image Update
25+
26+
Since the latest NVIDIA GPU Cloud Machine image is almost 1 year old, it is recommended to update NVIDIA drivers and CUDA by running:
27+
28+
```
29+
sudo apt purge nvidia* libnvidia*
30+
sudo apt-get install -y cuda-drivers-545
31+
sudo apt-get install -y nvidia-kernel-open-545
32+
sudo apt-get install -y cuda-toolkit-12-3
33+
sudo reboot
34+
```
35+
36+
## System configuration
37+
38+
Once the NVIDIA packages are updated, it is necessary to reconfigure docker in order to make it GPU aware:
39+
40+
```
41+
sudo apt-get install -y nvidia-container-toolkit
42+
sudo nvidia-ctk runtime configure --runtime=docker
43+
sudo systemctl restart docker
44+
```
45+
46+
## Container Deployment
47+
48+
To deploy the model, simply run the vLLM container:
49+
50+
```
51+
docker run --gpus all \
52+
-e HF_TOKEN=$HF_TOKEN -p 8000:8000 \
53+
ghcr.io/mistralai/mistral-src/vllm:latest \
54+
--host 0.0.0.0 \
55+
--model mistralai/Mistral-7B-Instruct-v0.2
56+
```
57+
where `$HF_TOKEN` is the HuggingFace Auth Token set as an environment variable. Pulling the image for the container may take up to 20 minutes.
58+
59+
Once the deployment is finished, the model is available by default at http://0.0.0.0:8000.
60+
61+
# Model Calling
62+
63+
The Mistral model is available through a OpenAI compatible API. As a prerequisite you must have the curl package installed.
64+
65+
```
66+
sudo apt-get install curl
67+
```
68+
69+
Below are 3 examples of curl requests. The `json_pp` utility (JSON Pretty Printer) eases the model output reading by printing the JSON data in a legible, indented format.
70+
71+
* Check the model version available in the container:
72+
73+
```
74+
curl http://localhost:8000/v1/models | json_pp
75+
```
76+
77+
* Complete a sentence:
78+
79+
```
80+
curl http://localhost:8000/v1/completions \
81+
-H "Content-Type: application/json" \
82+
-d '{
83+
"model": "mistralai/Mistral-7B-Instruct-v0.2",
84+
"prompt": "A GPU is a",
85+
"max_tokens": 128,
86+
"temperature": 0.7
87+
}' | json_pp
88+
```
89+
90+
* Chat
91+
92+
```
93+
curl http://localhost:8000/v1/chat/completions \
94+
-H "Content-Type: application/json" \
95+
-d '{
96+
"model": "mistralai/Mistral-7B-Instruct-v0.2",
97+
"messages": [
98+
{"role": "user", "content": "Which GPU models are available on Oracle Cloud Infrastructure?"}
99+
]
100+
}' | json_pp
101+
```
102+
103+
# Notes
104+
105+
Mixtral8x7B is much more greedy that Mistral 7B and it will not fit in a single A10 GPU VM, nor a quad A10 GPU BM. Therefore it is necessary to either:
106+
* Increase the size of the shape to a BM.GPU4.8 (8 x A100 40 GB GPUs).
107+
* Use a quantized version such as [TheBloke/mixtral-8x7b-v0.1-AWQ](https://huggingface.co/TheBloke/mixtral-8x7b-v0.1-AWQ). However, AWQ quantization on vLLM is not fully optimized yet so speed might be lower than the original model.
108+
109+
```
110+
docker run --gpus all \
111+
-e HF_TOKEN=$HF_TOKEN -p 8000:8000 \
112+
vllm/vllm-openai:latest \
113+
--host 0.0.0.0 \
114+
--port 8000 \
115+
--model TheBloke/mixtral-8x7b-v0.1-AWQ \
116+
--quantization awq \
117+
--tensor-parallel-size 4 \
118+
--gpu-memory-utilization 0.95 \
119+
--enforce-eager
120+
```
121+
122+
# Resources
123+
124+
* [vLLM Documentation](https://docs.vllm.ai/en/latest/)
125+
* [Mistral Documentation](https://docs.mistral.ai/)

cloud-infrastructure/multicloud/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Reviewed: 08.04.2024
2323
- [Implementing Oracle Database for Azure with a hub-and-spoke network](https://blogs.oracle.com/cloud-infrastructure/post/implementing-oracledb-azure-hubandspoke-network)
2424
- [Connecting OCI to GCP with Equinix Network Edge](https://blogs.oracle.com/cloud-infrastructure/connecting-oracle-cloud-infrastructure-to-google-cloud-platform-with-equinix-network-edge-cloud-router)
2525
- [Connecting OCI to AWS with Megaport](https://blogs.oracle.com/cloud-infrastructure/connecting-oracle-cloud-infrastructure-to-amazon-vpc-with-megaport-cloud-router)
26-
- [Connecting on prem network to OCI with Colt on demand](https://blogs.oracle.com/cloud-infrastructure/connecting-your-on-premises-network-to-oracle-cloud-with-colt-on-demand)
26+
- [Connecting on-premises network to OCI with Colt on demand](https://blogs.oracle.com/cloud-infrastructure/connecting-your-on-premises-network-to-oracle-cloud-with-colt-on-demand)
2727
- [Oracle and Microsoft bring Oracle Database@Azure to Europe](https://blogs.oracle.com/cloud-infrastructure/post/oracle-microsoft-databaseazure-europe?source=:so:ch:or:awr::::&SC=:so:ch:or:awr::::&pcode=)
2828

2929
## Reference Architectures
@@ -34,14 +34,14 @@ Reviewed: 08.04.2024
3434
- [Connect Oracle Data Safe to Oracle databases on multicloud and hybrid cloud environments](https://docs.oracle.com/en/solutions/data-safe-multicloud-ods-hybrid/index.html)
3535
- [Extend your high availability database architecture to multicloud using OCI GoldenGate replication](https://docs.oracle.com/en/solutions/oci-multicloud-db-replication-goldengate/index.html)
3636
- [Deploy multicloud Oracle Database Service for Microsoft Azure in a hub and spoke topology](https://docs.oracle.com/en/solutions/odsa-azure-hub-spoke/index.html)
37-
- [Deploy a Multicloud split-stack solution across OCI, AWS and GCP](https://docs.oracle.com/en/solutions/oci-aws-gcp-multicloud/index)
38-
- [Best practices for hybrid and Multi Cloud  OCI networking design](https://docs.oracle.com/en/solutions/oci-best-practices-networking/index.html)
37+
- [Deploy a Multicloud split-stack solution across OCI, AWS, and GCP](https://docs.oracle.com/en/solutions/oci-aws-gcp-multicloud/index)
38+
- [Best practices for hybrid and multicloud OCI networking design](https://docs.oracle.com/en/solutions/oci-best-practices-networking/index.html)
3939
- [Multi cloud patterns to deploy Oracle Applications (EBS, PeopleSoft, JD Edwards) to Azure and OCI](https://learn.microsoft.com/en-us/azure/virtual-machines/workloads/oracle/oracle-oci-applications)
4040
- [Extend Active Directory integration in Hybrid Cloud](https://docs.oracle.com/en/solutions/integrate-oci-msft-ad/)
4141
- [Establish a multi-cloud private network connectivity through Oracle Integration Cloud](https://docs.oracle.com/en/solutions/multi-cloud-with-oic/index.html)
42-
- [Multicloud split-stack architecture with OCI, GCP and AWS](https://docs.oracle.com/en/solutions/oci-aws-gcp-multicloud/index.html)
42+
- [Multicloud split-stack architecture with OCI, GCP, and AWS](https://docs.oracle.com/en/solutions/oci-aws-gcp-multicloud/index.html)
4343

44-
## Certificatons
44+
## Certifications
4545

4646
- [Become an OCI Multicloud Architect Associate](https://mylearn.oracle.com/ou/learning-path/become-an-oci-multicloud-architect/120606)
4747
- [Become an Oracle Database@Azure Specialist](https://mylearn.oracle.com/ou/learning-path/become-an-oracle-databaseazure-specialist/135857)
Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,43 @@
11
# MongoDB API
22

3-
Reviewed: 02.04.2024
3+
Oracle Database API for MongoDB (short MongoDB API) lets applications interact with collections of JSON documents in Oracle Database using MongoDB commands. MongoDB developers can continue to use their usual tools and drivers to perform collection operations. Migrations from MongoDB workloads to Oracle have become easy since no or only minor application changes are required except for the connection string. A major advantage is that JSON Collections can be used with SQL and thus the functionality of the whole Oracle platform is available.
4+
5+
Oracle Database API for MongoDB is provided as part of Oracle Autonomous Database Serverless. You can enable it there using the Oracle Cloud Infrastructure Console. If you have Oracle REST Data Services (ORDS) release 22.3 or later installed, you can use the MongoDB API with any Oracle database, release 21c or later, as well as with any Oracle Autonomous Database, release 19c (serverless, dedicated, and cloud@customer).
6+
7+
Reviewed: 10.04.2024
8+
9+
# Useful Links
10+
11+
## Documentation
12+
13+
- [Oracle Database API for MongoDB](https://docs.oracle.com/en/database/oracle/mongodb-api/mgapi/overview-oracle-database-api-mongodb.html)
14+
- [Using Oracle Autonomous Database Serverless](https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/mongo-using-oracle-database-api-mongodb.html#GUID-49018B09-9712-44DC-A950-B8129E7DA0D2)
15+
- [Oracle Database API for MongoDB (paper)](https://docs.oracle.com/en/database/oracle/mongodb-api/mgapi/oracle-database-api-mongodb.pdf)
16+
17+
## Blogs
18+
19+
- [Use JSON Relational Duality with Oracle Database API for Mongo DB](https://blogs.oracle.com/datawarehousing/post/use-json-relational-duality-with-oracle-database-api-for-mongo-db)
20+
- [Installing Database API for MongoDB for any Oracle Database](https://blogs.oracle.com/database/post/installing-database-api-for-mongodb-for-any-oracle-database)
21+
- [Oracle Database API for MongoDB - Best Practices](https://blogs.oracle.com/datawarehousing/post/oracle-database-api-for-mongodb-best-practices)
22+
23+
## LiveLabs Workshops
24+
25+
- [Use the Oracle Database API for MongoDB](https://apexapps.oracle.com/pls/apex/f?p=133:180:113545160863506::::wid:3152)
26+
27+
## Video
28+
29+
- [Get Started with the New Oracle Database API for MongoDB](https://www.youtube.com/watch?v=CdvjHGtaqeU)
30+
- [Store and analyze JSON data using the Oracle API for MongoDB and SQL/JSON I Oracle Database World](https://www.youtube.com/watch?v=EVDn4b6u628)
31+
32+
# Team Publications
33+
34+
- [JSON, SODA, REST, and Oracle Database API for MongoDB](https://blogs.oracle.com/coretec/post/json-soda-rest-and-oracle-database-api-for-mongodb)
35+
- [Oracle Database 23c Development Edition on Docker](https://blogs.oracle.com/coretec/post/oracle-database-23c-development-edition-on-docker#img)
436

537
# License
638

739
Copyright (c) 2024 Oracle and/or its affiliates.
840

941
Licensed under the Universal Permissive License (UPL), Version 1.0.
1042

11-
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.
43+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.

data-platform/core-converged-db/oracle-text/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Oracle Text is a full-text search that is fully integrated into the Oracle Datab
44

55
Oracle Text can perform linguistic analysis on documents, mining capabilities, classification, clustering, etc.
66

7-
Review Date: 03.06.2024
7+
Reviewed Date: 10.04.2024
88

99
# Useful Links
1010

@@ -38,6 +38,7 @@ Review Date: 03.06.2024
3838

3939
- [New full-text search in 23c: Ubiquitous Database Search](https://blogs.oracle.com/coretec/post/ubiquitous-database-search-in-23c)
4040
- [Easy Database Search with APEX in 23c](https://blogs.oracle.com/coretec/post/easy-database-search-with-apex-in-23c)
41+
- [Text Index with Automatic Maintenance](https://blogs.oracle.com/coretec/post/text-index-with-automatic-maintenance)
4142

4243
# License
4344

data-platform/data-development/sql-tools/SQL-Do It Yourself/README.md

Lines changed: 94 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,106 @@
11
# SQL - Do It yourself
2+
**Welcome to the "SQL - Do it Yourself" section, dedicated to empowering you with comprehensive resources and tips to master Oracle SQL tools and techniques. Whether you're a beginner or an experienced SQL user, this section aims to enhance your SQL proficiency and productivity.**
3+
24
This section covers Public Oracle SQL Tools: Use of SQL in extensive way: from SQL Developer to sqlplus and SQLcl.
35
Providing links to public useful documentation about SQL use and tips. SQL Tips on Fortnight basis and and articles/blogs written by Oracle SQL and Database Advocates and Product Managers and SQL examples are shown here.
46
A SQL Clue Card is also provided.
57

68
# Table of Contents
79

8-
TBD
10+
1. [Public Oracle SQL Tools](#public-oracle-sql-tools)
11+
12+
1.1. [SQL Tips](#sql-tips)
13+
14+
1.2. [Articles/Blogs](#articlesblogs)
15+
16+
1.3. [SQL Examples](#sql-examples)
17+
18+
1.4. [SQL Clue Card](#sql-clue-card)
19+
20+
2. [SQLcl](#sqlcl)
21+
22+
2.1. [Features of SQLcl](#features-of-sqlcl)
23+
24+
2.2. [Resources](#resources)
25+
26+
2.3. [Getting Started](#getting-started)
27+
28+
29+
## 1. Public Oracle SQL Tools
30+
31+
Explore a variety of Oracle SQL tools to streamline your database management tasks:
32+
33+
- **SQL Developer**: Oracle SQL Developer provides a powerful integrated development environment (IDE) for Oracle Database. Discover its features and functionalities to optimize your SQL workflow.
34+
- [Official Documentation](https://docs.oracle.com/cd/E12151_01/index.htm)
35+
- [Getting Started Guide](https://docs.oracle.com/cd/E25259_01/appdev.31/e24285/toc.htm)
36+
- [Video Tutorials](link)
37+
38+
- **sqlplus**: Master the command-line interface for Oracle Database with sqlplus. Learn essential commands and best practices for efficient SQL execution.
39+
- [Official Documentation](link)
40+
- [Command Reference](link)
41+
- [Tips and Tricks](link)
42+
43+
- **SQLcl**: Dive into the versatile command-line interface for Oracle Database with SQLcl. Experience its advanced features and customization options for enhanced SQL scripting and execution.
44+
- [Official Documentation](link)
45+
- [Installation Guide](link)
46+
- [Customization Tips](link)
47+
48+
## 1.1. SQL Tips
49+
50+
Stay updated with fortnightly SQL tips to sharpen your SQL skills and discover new techniques for database querying and management.
51+
52+
- **Tip 1: [Tip Title]** - [Description/Explanation]
53+
- **Tip 2: [Tip Title]** - [Description/Explanation]
54+
- ...
55+
56+
## 1.2. Articles/Blogs
57+
58+
Explore insightful articles and blogs written by Oracle SQL and Database advocates, product managers, and experts to stay informed about the latest trends, best practices, and innovations in SQL and database management.
59+
60+
- [Article 1 Title](link) - [Brief Description]
61+
- [Article 2 Title](link) - [Brief Description]
62+
- ...
63+
64+
## 1.3. SQL Examples
65+
66+
Access a repository of SQL examples to learn practical applications of SQL in various scenarios. Explore query samples, optimization techniques, and troubleshooting solutions to enhance your SQL proficiency.
67+
68+
- **Example 1: [Example Title]** - [Description/Explanation]
69+
- **Example 2: [Example Title]** - [Description/Explanation]
70+
- ...
71+
72+
## 1.4. SQL Clue Card
73+
74+
Get quick access to essential SQL commands, syntax, and tips with the SQL Clue Card. Print it out or keep it handy for reference during your SQL scripting sessions.
75+
76+
- [Download SQL Clue Card](link)
77+
78+
# 2. SQLcl
79+
80+
Discover the advanced features and functionalities of SQLcl, Oracle's command-line interface for Oracle Database. From customizable prompts to enhanced scripting capabilities, SQLcl offers a versatile environment for SQL developers and administrators.
81+
82+
## 2.1. Features of SQLcl
83+
84+
- **Customizable Prompt**: Personalize your SQLcl environment with custom prompts to display relevant information and enhance readability.
85+
- **Scripting Enhancements**: Leverage SQLcl's scripting capabilities to automate database tasks, generate reports, and streamline workflows.
86+
- **Integrated Command-line Editing**: Take advantage of built-in command-line editing features for efficient SQL input and editing.
87+
88+
## 2.2. Resources
89+
90+
- [Official Documentation](https://www.oracle.com/es/database/sqldeveloper/technologies/sqlcl/)
91+
- [Installation Guide](https://docs.oracle.com/en/database/oracle/apex/23.2/aeadm/downloading-and-installing-sqlcl.html)
92+
- [Tips and Tricks](link)
93+
94+
## 2.3. Getting Started
95+
96+
Ready to explore SQLcl? Follow these steps to install SQLcl and start leveraging its powerful features for SQL scripting and database management.
997

98+
1. [Download SQLcl](link) and follow the installation instructions for your operating system.
99+
2. Configure SQLcl settings and customize your environment according to your preferences.
100+
3. Explore SQLcl commands and features to familiarize yourself with its capabilities.
101+
4. Start scripting and executing SQL commands with ease using SQLcl's intuitive interface.
10102

11-
# Reusable Assets Overview
103+
# 3. Reusable Assets Overview
12104

13105
TBD
14106

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Database Upgrade
2+
3+
This page will describe the various upgrade methodologies for both on-premises databases as well as for databases residing in OCI.
4+
5+
Reviewed: 04.04.2024
6+
7+
# Table of Contents
8+
9+
1. [Team Publications](#team-publications)
10+
2. [Useful Links](#useful-links)
11+
12+
# Team Publications
13+
14+
- [Upgrade Oracle Database EE from 12.2 to 19.3 using AutoUpgrade tool](https://mihaicosteanu.wordpress.com/2024/03/28/upgrade-oracle-database-ee-from-12-2-to-19-3-using-autoupgrade-tool/)
15+
- Step-by-step guide by Mihai Costeanu demonstrating the upgrade of a 12.2 Enterprise Edition database to version 19.3 via the AutoUpgrade tool
16+
17+
# Useful Links
18+
- [Database Server Upgrade/Downgrade Compatibility Matrix on MOS (Doc ID 551141.1)](https://support.oracle.com/epmos/faces/DocumentDisplay?id=551141.1)
19+
- [LiveLabs: Hitchhiker's Guide for Upgrading to Oracle Database 19c & 23c](https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=606&clear=RR,180)
20+
- [Mike Dietrich's Personal Platform](https://mikedietrichde.com/)
21+
- [Daniel Overby Hansen's Personal Platform](https://dohdatabase.com/)
22+
23+
# License
24+
25+
Copyright (c) 2024 Oracle and/or its affiliates.
26+
27+
Licensed under the Universal Permissive License (UPL), Version 1.0.
28+
29+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.

0 commit comments

Comments
 (0)