Connect with us

News

Microsoft’s Orca 2: Revolutionizing AI with Compact Language Models

Microsoft’s Orca 2 is a groundbreaking AI language model that has made significant strides in efficiency and performance. The models, with 7 billion and 13 billion parameters, have matched or surpassed the capabilities of larger models, like Meta’s Llama-2 Chat-70B, in complex reasoning tasks and zero-shot scenarios. This achievement underscores Microsoft’s effectiveness in AI research and development.

Orca 2’s ability to outperform larger models is attributed to innovative training methods and improved signals. The models have been trained on a tailored synthetic dataset and can choose different solution strategies for different tasks. Despite its breakthroughs, Orca 2 inherits certain limitations from its base models, such as potential data biases and lack of contextual understanding.

Microsoft’s decision to open-source Orca 2 models demonstrates its commitment to fostering collaboration and further research in AI. This move is expected to accelerate progress in developing and evaluating smaller language models. Orca 2’s release also democratizes AI accessibility, providing organizations of all sizes with a more accessible alternative to state-of-the-art natural language processing without the need for significant computational investments.

The introduction of Orca 2 serves as a reminder of the limitless potential of innovation in the AI landscape. Microsoft’s commitment to pushing the boundaries of AI research is poised to reshape how businesses approach natural language processing and reasoning tasks. With the integration of OpenAI talent and strategic vision, Microsoft is set to further bolster the capabilities and development of language models like Orca 2, potentially reshaping the landscape of AI technology and its applications.

Published

on

Orca 2

In a groundbreaking move, Microsoft, under Satya Nadella’s leadership, introduced Orca 2. Amidst the dynamic shifts within the AI research community, including significant events at OpenAI, Microsoft has remained steadfast in its AI endeavors. Orca 2, comprising models with 7 billion and 13 billion parameters, has made a splash by either matching or surpassing the capabilities of larger models, like Meta’s Llama-2 Chat-70B, particularly in complex reasoning tasks and zero-shot scenarios.

The Emergence and Impact of Orca 2

Orca 2 is an incremental update and represents a substantial leap forward in AI language modeling. Building on the original 13-billion-parameter Orca model, Orca 2 has demonstrated remarkable reasoning abilities, imitating the step-by-step processes of larger models. This has been achieved through innovative training methods and improved signals, enabling these smaller models to achieve reasoning capabilities typically reserved for their larger counterparts.

Orca 2’s ability to outperform much larger models in specific tasks is a testament to Microsoft’s efficiency in research and development within AI. The models have been put through rigorous testing on diverse benchmarks covering language understanding, common-sense reasoning, multi-step reasoning, math problem-solving, and reading comprehension. The results show that Orca 2 models significantly surpass those of a similar size and attain performance levels comparable to or better than models ten times larger.

A New Paradigm in AI Research

Microsoft’s decision to open-source both Orca 2 models underscores its commitment to fostering collaboration and further research in AI. This move is expected to accelerate progress in developing and evaluating smaller language models. Orca 2’s release is a boon for enterprises, especially those with limited resources, offering a more accessible alternative to state-of-the-art natural language processing without the need for significant computational investments.

Training Methodologies and Challenges

Orca 2 has been fine-tuned on a highly tailored synthetic dataset derived from the Llama 2 base models. The training data was designed to teach Orca 2 various reasoning techniques, such as step-by-step processing, recall then generate, and direct answer methods. This approach has enabled Orca 2 to choose different solution strategies for other tasks, flexibility not often found in larger models.

Despite its breakthroughs, Orca 2 inherits certain limitations from its base LLaMA 2 model and other large language models. These include potential data biases, lack of contextual understanding, transparency issues, and risks of content harm. Microsoft has recognized these challenges and recommends leveraging content moderation services to mitigate them.

Democratizing AI Accessibility

Microsoft’s release of Orca 2 marks a significant milestone in the democratization of AI, challenging the notion that bigger models are always superior. This development opens up opportunities for organizations of all sizes to harness the power of AI without massive computational resources.

The Future of AI with Orca 2

The AI landscape is continuously evolving, and the introduction of Orca 2 serves as a reminder of the limitless potential of innovation. Microsoft’s commitment to pushing the boundaries of AI research is poised to reshape how businesses approach natural language processing and reasoning tasks. With the integration of OpenAI talent and strategic vision, Microsoft is set to further bolster the capabilities and development of language models like Orca 2, potentially reshaping the landscape of AI technology and its applications.

In conclusion, Orca 2 emerges as a beacon of progress and inclusivity in the AI world. Its potential to empower smaller models to rival their larger counterparts promises a revolution in the AI landscape, offering new possibilities for AI-driven endeavors across various sectors.

News

How to: Show/Hide any div box with jQuery in WordPress

Published

on

If you take a look at my current sidebar (right) and see the heading Google Search you’ll notice that when you click it the Google Search box show’s into view.

Let me show you how this is done.

First make sure that your WordPress site is calling jQuery, buy pluggin this code into our header.php file above the <?php wp_head(); ?> text:

<?php wp_enqueue_script('jquery'); ?>

Then anywhere above the </head >, plug this code in:

<script type="text/javascript">
jQuery(document).ready(function() {
 // hides the slickbox as soon as the DOM is ready
  jQuery('#toggle-search').hide();

 // toggles the slickbox on clicking the noted link
  jQuery('a#slick-slidetoggle').click(function() {
	jQuery('#toggle-search').slideToggle(400);
	return false;
  });
});
</script>

That’s simple, huh. Okay now lets write the Search code:

<h2><a href="#" id="slick-slidetoggle">Google Search</a></h2>
	<div id="toggle-search" style="padding:10px;">
    <form method="get" id="search" action="<?php bloginfo('home'); ?>/">
        <div>
            <input type="text" value="Enter Keyword" onclick="this.value='';" name="s" id="s" />
            <input type="text" name="search-button" id="search-button" value="<?php _e('Search') ?>" />
        </div>
    </form>
</div>

That’s it.

Continue Reading

News

How to: Limiting the posts in you archive widget

Published

on

I have show you how to create a custom widget in a previous post. But how about adding and additional “Archives” widget that won’t list the last 3 years (if you’ve been around that long) in month form stretching down your whole sidebar?

Well, lets take a look at the original code found in the widgets.php file in the ./wp-includes/ folder.

<?php

/**
* Display archives widget.
*
* @since 2.2.0
*
* @param array $args Widget arguments.
*/
function wp_widget_archives($args) {
extract($args);
$options = get_option('widget_archives');
$c = $options['count'] ? '1' : '0';
$d = $options['dropdown'] ? '1' : '0';
$title = empty($options['title']) ? __('Archives') : apply_filters('widget_title', $options['title']);

echo $before_widget;
echo $before_title . $title . $after_title;

if($d) {
?>
<select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'> <option value=""><?php echo attribute_escape(__('Select Month')); ?></option> <?php wp_get_archives("type=monthly&format=option&show_post_count=$c"); ?> </select>
<?php
} else {
?>
<ul>
<?php wp_get_archives("type=monthly&show_post_count=$c"); ?>
</ul>
<?php
}

echo $after_widget;
}

/**
* Display and process archives widget options form.
*
* @since 2.2.0
*/
function wp_widget_archives_control() {
$options = $newoptions = get_option('widget_archives');
if ( isset($_POST["archives-submit"]) ) {
$newoptions['count'] = isset($_POST['archives-count']);
$newoptions['dropdown'] = isset($_POST['archives-dropdown']);
$newoptions['title'] = strip_tags(stripslashes($_POST["archives-title"]));
}
if ( $options != $newoptions ) {
$options = $newoptions;
update_option('widget_archives', $options);
}
$count = $options['count'] ? 'checked="checked"' : '';
$dropdown = $options['dropdown'] ? 'checked="checked"' : '';
$title = attribute_escape($options['title']);
?>
<p><label for="archives-title"><?php _e('Title:'); ?> <input class="widefat" id="archives-title" name="archives-title" type="text" value="<?php echo $title; ?>" /></label></p>
<p>
<label for="archives-count"><input class="checkbox" type="checkbox" <?php echo $count; ?> id="archives-count" name="archives-count" /> <?php _e('Show post counts'); ?></label>
<br />
<label for="archives-dropdown"><input class="checkbox" type="checkbox" <?php echo $dropdown; ?> id="archives-dropdown" name="archives-dropdown" /> <?php _e('Display as a drop down'); ?></label>
</p>
<input type="hidden" id="archives-submit" name="archives-submit" value="1" />
<?php } ?>

Simple enough? Or not..

Anyway lets just add on and change a few things. Then will add the final code to your functions.php file.

Okay, starting with the first function: wp_widget_archive and rename to widget_archive_limit

Should look like this now:

function widget_archives_limit($args) {

Then under the this line:

$title = empty($options['title']) ? __('Archives') : apply_filters('widget_title', $options['title']);

Add:

$limit = empty($options['limit']) ? __('Limit') : apply_filters('widget_limit', $options['limit']);

At this line:

<?php wp_get_archives("type=monthly&format=option&show_post_count=$c&limit=$limit"); ?>

We have added in &limit=$limit. The same goes for the second wp_get_archives:

<?php wp_get_archives("type=monthly&show_post_count=$c&limit=$limit"); ?>

At the end of this code add:

wp_register_sidebar_widget('archives limit', __('Archives Limit'), 'widget_archives_limit', $widget_ops);

The whole code should look like this:

function widget_archives_limit($args) {
	extract($args);
	$options = get_option('widget_archives');
	$c = $options['count'] ? '1' : '0';
	$d = $options['dropdown'] ? '1' : '0';
	$title = empty($options['title']) ? __('Archives') : apply_filters('widget_title', $options['title']);
	$limit = empty($options['limit']) ? __('Limit') : apply_filters('widget_limit', $options['limit']);

	echo $before_widget;
	echo $before_title . $title . $after_title;

	if($d) {
?>
		<select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'> <option value=""><?php echo attribute_escape(__('Select Month')); ?></option> <?php wp_get_archives("type=monthly&format=option&show_post_count=$c&limit=$limit"); ?> </select>
<?php
	} else {
?>
		<ul>
		<?php wp_get_archives("type=monthly&show_post_count=$c&limit=$limit"); ?>
		</ul>
<?php
	}

	echo $after_widget;
}

wp_register_sidebar_widget('archives limit', __('Archives Limit'), 'widget_archives_limit', $widget_ops);

That takes care of the widget its self, now we need to create the controls. Once again find the second function and change wp_widget_archive_control to widget_archives_limit_control

Find this line:

$newoptions['title'] = strip_tags(stripslashes($_POST["archives-title"]));

and add this line below:

$newoptions['limit'] = strip_tags(stripslashes($_POST["archives-limit"]));

Then find this line:

$title = attribute_escape($options['title']);

and add this line below:

$limit = attribute_escape($options['limit']);

Finally look for this line:

<label for="archives-dropdown"><input class="checkbox" type="checkbox" <?php echo $dropdown; ?> id="archives-dropdown" name="archives-dropdown" /> <?php _e('Display as a drop down'); ?></label>
			</p>

and add this line below:

<p><label for="archives-limit"><?php _e('Limit (enter a number):'); ?> <input class="widefat" id="archives-limit" name="archives-limit" type="text" value="<?php echo $limit; ?>" /></label></p>

then register the widget controls:

wp_register_widget_control('archives limit', __('Archives Limit'), 'widget_archives_limit_control' );

The code should look like this:

function widget_archives_limit_control() {
	$options = $newoptions = get_option('widget_archives');
	if ( isset($_POST["archives-submit"]) ) {
		$newoptions['count'] = isset($_POST['archives-count']);
		$newoptions['dropdown'] = isset($_POST['archives-dropdown']);
		$newoptions['title'] = strip_tags(stripslashes($_POST["archives-title"]));
		$newoptions['limit'] = strip_tags(stripslashes($_POST["archives-limit"]));
	}
	if ( $options != $newoptions ) {
		$options = $newoptions;
		update_option('widget_archives', $options);
	}
	$count = $options['count'] ? 'checked="checked"' : '';
	$dropdown = $options['dropdown'] ? 'checked="checked"' : '';
	$title = attribute_escape($options['title']);
	$limit = attribute_escape($options['limit']);
?>
			<p><label for="archives-title"><?php _e('Title:'); ?> <input class="widefat" id="archives-title" name="archives-title" type="text" value="<?php echo $title; ?>" /></label></p>
			<p>
				<label for="archives-count"><input class="checkbox" type="checkbox" <?php echo $count; ?> id="archives-count" name="archives-count" /> <?php _e('Show post counts'); ?></label>
				<br />
				<label for="archives-dropdown"><input class="checkbox" type="checkbox" <?php echo $dropdown; ?> id="archives-dropdown" name="archives-dropdown" /> <?php _e('Display as a drop down'); ?></label>
			</p>
			<p><label for="archives-limit"><?php _e('Limit (enter a number):'); ?> <input class="widefat" id="archives-limit" name="archives-limit" type="text" value="<?php echo $limit; ?>" /></label></p>
			<input type="hidden" id="archives-submit" name="archives-submit" value="1" />
<?php } 

wp_register_widget_control('archives limit', __('Archives Limit'), 'widget_archives_limit_control' );

The final code:

/**
 * Display archives widget.
 *
 * @since 2.2.0
 *
 * @param array $args Widget arguments.
 */
function widget_archives_limit($args) {
	extract($args);
	$options = get_option('widget_archives');
	$c = $options['count'] ? '1' : '0';
	$d = $options['dropdown'] ? '1' : '0';
	$title = empty($options['title']) ? __('Archives') : apply_filters('widget_title', $options['title']);
	$limit = empty($options['limit']) ? __('Limit') : apply_filters('widget_limit', $options['limit']);

	echo $before_widget;
	echo $before_title . $title . $after_title;

	if($d) {
?>
		<select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'> <option value=""><?php echo attribute_escape(__('Select Month')); ?></option> <?php wp_get_archives("type=monthly&format=option&show_post_count=$c&limit=$limit"); ?> </select>
<?php
	} else {
?>
		<ul>
		<?php wp_get_archives("type=monthly&show_post_count=$c&limit=$limit"); ?>
		</ul>
<?php
	}

	echo $after_widget;
}

wp_register_sidebar_widget('archives limit', __('Archives Limit'), 'widget_archives_limit', $widget_ops);

/**
 * Display and process archives widget options form.
 *
 * @since 2.2.0
 */
function widget_archives_limit_control() {
	$options = $newoptions = get_option('widget_archives');
	if ( isset($_POST["archives-submit"]) ) {
		$newoptions['count'] = isset($_POST['archives-count']);
		$newoptions['dropdown'] = isset($_POST['archives-dropdown']);
		$newoptions['title'] = strip_tags(stripslashes($_POST["archives-title"]));
		$newoptions['limit'] = strip_tags(stripslashes($_POST["archives-limit"]));
	}
	if ( $options != $newoptions ) {
		$options = $newoptions;
		update_option('widget_archives', $options);
	}
	$count = $options['count'] ? 'checked="checked"' : '';
	$dropdown = $options['dropdown'] ? 'checked="checked"' : '';
	$title = attribute_escape($options['title']);
	$limit = attribute_escape($options['limit']);
?>
			<p><label for="archives-title"><?php _e('Title:'); ?> <input class="widefat" id="archives-title" name="archives-title" type="text" value="<?php echo $title; ?>" /></label></p>
			<p>
				<label for="archives-count"><input class="checkbox" type="checkbox" <?php echo $count; ?> id="archives-count" name="archives-count" /> <?php _e('Show post counts'); ?></label>
				<br />
				<label for="archives-dropdown"><input class="checkbox" type="checkbox" <?php echo $dropdown; ?> id="archives-dropdown" name="archives-dropdown" /> <?php _e('Display as a drop down'); ?></label>
			</p>
			<p><label for="archives-limit"><?php _e('Limit (enter a number):'); ?> <input class="widefat" id="archives-limit" name="archives-limit" type="text" value="<?php echo $limit; ?>" /></label></p>
			<input type="hidden" id="archives-submit" name="archives-submit" value="1" />
<?php } 

wp_register_widget_control('archives limit', __('Archives Limit'), 'widget_archives_limit_control' );

Continue Reading

News

January 28th declared plugin developer day

Published

on

Today Matt Mullenweg from MA.TT declared today official plugin developer day because the plugin directory hit 4,000 plugins, check it out: 4,000 Plugins.

plugin-developer-day-jan-28

 

Continue Reading

Random Search Terms

Title

Recent Posts: Fully Net Worth . com

Alex Honnold Net Worth: 5 Interesting Facts You Should Know

Alex Honnold Net Worth: 5 Interesting Facts You Should Know

Alex Honnold is an American rock climber who has made a name for himself through his free solo climbs. He famously became the first ever person to free solo around El Capitan in Yosemite National Park. Here are some interesting facts about Alex Honnold including his net worth, career, personal life and many more. 1. Alex Honnold net […]

Avani Gregg Net Worth: How Rich is the Tik Tok Superstar?

Avani Gregg Net Worth: How Rich is the Tik Tok Superstar?

Avani Gregg is an American social media personality best known for being a star in the lip-sync and dance platform TikTok. Here, she has gained an impressive following of over 8.2 million followers and 420 million likes in her videos. As of 2020, Avani Gregg’s net worth is estimated to be $350,000. Update: As of […]

Woah Vicky Net Worth: How Rich is Woah Vicky Actually?

Woah Vicky Net Worth: How Rich is Woah Vicky Actually?

Victoria Waldrip, who is better known as Woah Vicky, is an Instagram Influencer. Her journey towards being famous has been filled with controversies with her initially being viral after she was published a video where she was sure that she is black. Moreover, she also has a Youtube channel that has 800k subscribers where she […]

MindofRez Net Worth: 5 Interesting Facts You Should Know

MindofRez Net Worth: 5 Interesting Facts You Should Know

Bryan Carti is a Youtuber who is well known for his channel called “MindofRez” which he started on June 8, 2016. Here are some interesting facts about MindofRez: 1. MindofRez has an estimated net worth of $2 million As of 2019, MindofRez net worth is estimated to be around $2 million. MindofRez has been able […]

Trending